public class ExecutorThreadModelFactoryBean
extends java.lang.Object
FactoryBean which makes it possible to set up a MINA
ExecutorThreadModel using Spring. The serviceName
property must be set using setServiceName(String).| 构造器和说明 |
|---|
ExecutorThreadModelFactoryBean() |
| 限定符和类型 | 方法和说明 |
|---|---|
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()
public java.lang.Object getObject()
throws java.lang.Exception
java.lang.Exceptionpublic boolean isSingleton()
public void afterPropertiesSet()
throws java.lang.Exception
java.lang.Exception