Package io.hekate.spring.bean.rpc
Class RpcClientBean<T>
- java.lang.Object
-
- io.hekate.spring.bean.HekateBaseBean<T>
-
- io.hekate.spring.bean.rpc.RpcClientBean<T>
-
- Type Parameters:
T
- RPC service interface.
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.FactoryBean<T>
,org.springframework.beans.factory.InitializingBean
public class RpcClientBean<T> extends HekateBaseBean<T> implements org.springframework.beans.factory.InitializingBean
Imports RPC client proxy into the Spring context.
-
-
Constructor Summary
Constructors Constructor Description RpcClientBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
T
getObject()
Class<?>
getObjectType()
Class<T>
getRpcInterface()
Returns the RPC service interface (seesetRpcInterface(Class)
).String
getTag()
Returns the RPC service tag.void
setRpcInterface(Class<T> rpcInterface)
Sets the RPC service interface.void
setTag(String tag)
Sets the RPC service tag.-
Methods inherited from class io.hekate.spring.bean.HekateBaseBean
getSource, isSingleton, setBeanFactory, setSource
-
-
-
-
Method Detail
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<T>
-
getRpcInterface
public Class<T> getRpcInterface()
Returns the RPC service interface (seesetRpcInterface(Class)
).- Returns:
- RPC service interface.
-
setRpcInterface
public void setRpcInterface(Class<T> rpcInterface)
Sets the RPC service interface.- Parameters:
rpcInterface
- RPC service interface.
-
getTag
public String getTag()
Returns the RPC service tag.- Returns:
- RPC service tag.
-
setTag
public void setTag(String tag)
Sets the RPC service tag.- Parameters:
tag
- RPC service tag.
-
-