org.apache.camel.core.xml
Class AbstractCamelProducerTemplateFactoryBean

java.lang.Object
  extended by org.apache.camel.model.IdentifiedType
      extended by org.apache.camel.core.xml.AbstractCamelProducerTemplateFactoryBean
All Implemented Interfaces:
CamelContextAware

public abstract class AbstractCamelProducerTemplateFactoryBean
extends IdentifiedType
implements CamelContextAware

A factory for creating a new ProducerTemplate instance with a minimum of XML

Version:
$Revision: 934375 $

Constructor Summary
AbstractCamelProducerTemplateFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 CamelContext getCamelContext()
           
 String getCamelContextId()
           
protected abstract  CamelContext getCamelContextWithId(String camelContextId)
           
 String getDefaultEndpoint()
           
 Integer getMaximumCacheSize()
           
 Object getObject()
           
 Class getObjectType()
           
 boolean isSingleton()
           
 void setCamelContext(CamelContext camelContext)
           
 void setCamelContextId(String camelContextId)
           
 void setDefaultEndpoint(String defaultEndpoint)
          Sets the default endpoint URI used by default for sending message exchanges
 void setMaximumCacheSize(Integer maximumCacheSize)
           
 
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

AbstractCamelProducerTemplateFactoryBean

public AbstractCamelProducerTemplateFactoryBean()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Throws:
Exception

getCamelContextWithId

protected abstract CamelContext getCamelContextWithId(String camelContextId)

getObject

public Object getObject()
                 throws Exception
Throws:
Exception

getObjectType

public Class getObjectType()

isSingleton

public boolean isSingleton()

destroy

public void destroy()
             throws Exception
Throws:
Exception

getCamelContext

public CamelContext getCamelContext()
Specified by:
getCamelContext in interface CamelContextAware

setCamelContext

public void setCamelContext(CamelContext camelContext)
Specified by:
setCamelContext in interface CamelContextAware

getDefaultEndpoint

public String getDefaultEndpoint()

setDefaultEndpoint

public void setDefaultEndpoint(String defaultEndpoint)
Sets the default endpoint URI used by default for sending message exchanges


getCamelContextId

public String getCamelContextId()

setCamelContextId

public void setCamelContextId(String camelContextId)

getMaximumCacheSize

public Integer getMaximumCacheSize()

setMaximumCacheSize

public void setMaximumCacheSize(Integer maximumCacheSize)


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.