org.apache.mina.integration.spring
Class ExecutorThreadModelFactoryBean
java.lang.Object
org.apache.mina.integration.spring.ExecutorThreadModelFactoryBean
- public class ExecutorThreadModelFactoryBean
- extends Object
Spring FactoryBean which makes it possible to set up a MINA
ExecutorThreadModel using Spring. The serviceName
property must be set using setServiceName(String).
- Version:
- $Rev$, $Date$
- Author:
- The Apache Directory Project (mina-dev@directory.apache.org)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExecutorThreadModelFactoryBean
public ExecutorThreadModelFactoryBean()
setExecutor
public void setExecutor(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:
IllegalArgumentException - if the specified value is
null.
setServiceName
public void setServiceName(String serviceName)
- Sets the name of the service as used in the call to
ExecutorThreadModel.getInstance(String). This property is
required.
- Throws:
IllegalArgumentException - if the specified value is
null.
getObjectType
public Class getObjectType()
getObject
public Object getObject()
throws Exception
- Throws:
Exception
isSingleton
public boolean isSingleton()
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Throws:
Exception