Package io.hekate.spring.boot.rpc
Annotation Type InjectRpcClient
-
@Autowired @Qualifier @Documented @Retention(RUNTIME) @Target({METHOD,FIELD,PARAMETER,ANNOTATION_TYPE}) public @interface InjectRpcClient
Provides support for RPC clients autowiring.This annotation can be placed on any
autowire
-capable elements (fields, properties, parameters, etc) of application beans in order to inject an instance of RPC client proxy (seeRpcService.clientFor(Class)
) into that element.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String
tag
Specifies the RPC tag that should be used for this client (seeRpcClientConfig.setTag(String)
).
-
-
-
Element Detail
-
tag
String tag
Specifies the RPC tag that should be used for this client (seeRpcClientConfig.setTag(String)
).- Returns:
- RPC tag.
- Default:
- ""
-
-