Class 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 Detail

      • RpcClientBean

        public RpcClientBean()
    • Method Detail

      • getObject

        public T getObject()
                    throws Exception
        Specified by:
        getObject in interface org.springframework.beans.factory.FactoryBean<T>
        Throws:
        Exception
      • getObjectType

        public Class<?> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<T>
      • getRpcInterface

        public Class<T> getRpcInterface()
        Returns the RPC service interface (see setRpcInterface(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.
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception