public class ExecutorThreadModelFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean
FactoryBean which makes it possible to set up a MINA
ExecutorThreadModel using Spring. The serviceName
property must be set using setServiceName(String).| Constructor and Description |
|---|
ExecutorThreadModelFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
java.lang.Object |
getObject() |
java.lang.Class |
getObjectType() |
boolean |
isSingleton() |
void |
setExecutor(java.util.concurrent.Executor executor)
Sets the
Executor to use. |
void |
setServiceName(java.lang.String serviceName)
Sets the name of the service as used in the call to
ExecutorThreadModel.getInstance(String). |
public void setExecutor(java.util.concurrent.Executor executor)
Executor to use. If not set a default Executor
will be used by the ExecutorThreadModel created by this
factory bean.executor - the executor.java.lang.IllegalArgumentException - if the specified value is
null.public void setServiceName(java.lang.String serviceName)
ExecutorThreadModel.getInstance(String). This property is
required.executor - the executor.java.lang.IllegalArgumentException - if the specified value is
null.public java.lang.Class getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBeanpublic java.lang.Object getObject()
throws java.lang.Exception
getObject in interface org.springframework.beans.factory.FactoryBeanjava.lang.Exceptionpublic boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBeanpublic void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exception