Class ExecutorThreadModelFactoryBean

  • All Implemented Interfaces:
    org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

    public class ExecutorThreadModelFactoryBean
    extends java.lang.Object
    implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean
    Spring FactoryBean which makes it possible to set up a MINA ExecutorThreadModel using Spring. The serviceName property must be set using setServiceName(String).
    • Constructor Detail

      • ExecutorThreadModelFactoryBean

        public ExecutorThreadModelFactoryBean()
    • Method Detail

      • setExecutor

        public void setExecutor​(java.util.concurrent.Executor executor)
        Sets the Executor to use. If not set a default Executor will be used by the ExecutorThreadModel created by this factory bean.
        Parameters:
        executor - the executor.
        Throws:
        java.lang.IllegalArgumentException - if the specified value is null.
      • setServiceName

        public void setServiceName​(java.lang.String serviceName)
        Sets the name of the service as used in the call to ExecutorThreadModel.getInstance(String). This property is required.
        Parameters:
        executor - the executor.
        Throws:
        java.lang.IllegalArgumentException - if the specified value is null.
      • getObjectType

        public java.lang.Class getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean
      • getObject

        public java.lang.Object getObject()
                                   throws java.lang.Exception
        Specified by:
        getObject in interface org.springframework.beans.factory.FactoryBean
        Throws:
        java.lang.Exception
      • isSingleton

        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.springframework.beans.factory.FactoryBean
      • afterPropertiesSet

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