アノテーションインターフェース ImportGrpcClients
@RetentionSE(RUNTIMESE)
@TargetSE(TYPESE)
@DocumentedSE
@Import(AnnotationGrpcClientRegistrar.class)
@RepeatableSE(ImportGrpcClients.Container.class)
public @interface ImportGrpcClients
gRPC クライアント Bean を作成するためのアノテーション。
- 作成者:
- Dave Syer
ネストされたクラスの概要
ネストされたクラスオプション要素の概要
オプション要素
要素の詳細
target
StringSE target接続先の gRPC サーバーの名前またはベース URL。指定しない場合、クライアントはデフォルトのサーバーに接続します。- 戻り値:
- サーバーの名前またはベース URL
- デフォルト:
"default"
prefix
StringSE prefixクライアント用の Bean 定義を作成する際に使用する接頭辞。クラスの単純な名前で補完されます。デフォルトは空です。同じ型のクライアントを複数定義する場合(または異なるパッケージで同じ名前の型を定義する場合)にのみ値を指定する必要があります。- 戻り値:
- プレフィックス
- デフォルト:
""
types
value
factory
ClassSE<? extends StubFactory<?>> factoryスタブを作成するために使用するファクトリ型。basePackageClasses または basePackages を使用してスキャンを行い、スタブの作成をカスタマイズする必要がある場合にのみ必要です。- 戻り値:
- 提供時の型、デフォルトは
BlockingStubFactoryです。
- デフォルト:
org.springframework.grpc.client.UnspecifiedStubFactory.class
basePackageClasses
ClassSE<?>[] basePackageClassesThe base package classes to scan for stub implementations. If not specified, scanning will be done from the package of the class with this annotation. When a stub is found, a client bean will be created for it using the configuredfactory()。- 戻り値:
- the base package classes for scanning
- デフォルト:
{}
basePackages