org.apache.servicemix.client
Class ClientFactoryBean
java.lang.Object
org.apache.servicemix.client.ClientFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean
public class ClientFactoryBean
- extends Object
- implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean
A factory bean which creates a ServiceMixClient.
It first try to use the configured ClientFactory, the ComponentContext
then JBIContainer and at last, it tries to locate the ClientFactory
in JNDI under the provided name.
- Author:
- Guillaume Nodet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientFactoryBean
public ClientFactoryBean()
getContext
public javax.jbi.component.ComponentContext getContext()
- Returns:
- the context
setContext
public void setContext(javax.jbi.component.ComponentContext context)
- Parameters:
context - the context to set
getContainer
public JBIContainer getContainer()
- Returns:
- the container
setContainer
public void setContainer(JBIContainer container)
- Parameters:
container - the container to set
getFactory
public ClientFactory getFactory()
- Returns:
- the factory
setFactory
public void setFactory(ClientFactory factory)
- Parameters:
factory - the factory to set
getName
public String getName()
- Returns:
- the name
setName
public void setName(String name)
- Parameters:
name - the name to set
getObject
public Object getObject()
throws Exception
- Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
- Throws:
Exception
getObjectType
public Class getObjectType()
- Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.