org.apache.camel.core.xml
Class AbstractCamelFactoryBean<T>

java.lang.Object
  extended by org.apache.camel.model.IdentifiedType
      extended by org.apache.camel.core.xml.AbstractCamelFactoryBean<T>
All Implemented Interfaces:
CamelContextAware
Direct Known Subclasses:
AbstractCamelConsumerTemplateFactoryBean, AbstractCamelEndpointFactoryBean, AbstractCamelProducerTemplateFactoryBean, AbstractCamelRedeliveryPolicyFactoryBean, AbstractCamelThreadPoolFactoryBean, CamelErrorHandlerFactoryBean, CamelProxyFactoryBean

public abstract class AbstractCamelFactoryBean<T>
extends IdentifiedType
implements CamelContextAware


Constructor Summary
AbstractCamelFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 CamelContext getCamelContext()
          Get the CamelContext
 String getCamelContextId()
           
protected abstract  CamelContext getCamelContextWithId(String camelContextId)
           
abstract  T getObject()
           
abstract  Class<? extends T> getObjectType()
           
 boolean isSingleton()
           
 void setCamelContext(CamelContext camelContext)
          Injects the CamelContext
 void setCamelContextId(String camelContextId)
           
 
Methods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCamelFactoryBean

public AbstractCamelFactoryBean()
Method Detail

getObject

public abstract T getObject()
                     throws Exception
Throws:
Exception

getCamelContextWithId

protected abstract CamelContext getCamelContextWithId(String camelContextId)

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Throws:
Exception

destroy

public void destroy()
             throws Exception
Throws:
Exception

getCamelContext

public CamelContext getCamelContext()
Description copied from interface: CamelContextAware
Get the CamelContext

Specified by:
getCamelContext in interface CamelContextAware
Returns:
camelContext the Camel context

setCamelContext

public void setCamelContext(CamelContext camelContext)
Description copied from interface: CamelContextAware
Injects the CamelContext

Specified by:
setCamelContext in interface CamelContextAware
Parameters:
camelContext - the Camel context

getCamelContextId

public String getCamelContextId()

setCamelContextId

public void setCamelContextId(String camelContextId)

isSingleton

public boolean isSingleton()

getObjectType

public abstract Class<? extends T> getObjectType()


Apache CAMEL