org.apache.camel.spring
Class CamelProducerTemplateFactoryBean

java.lang.Object
  extended by org.apache.camel.model.IdentifiedType
      extended by org.apache.camel.spring.CamelProducerTemplateFactoryBean
All Implemented Interfaces:
CamelContextAware, FactoryBean, InitializingBean, ApplicationContextAware

public class CamelProducerTemplateFactoryBean
extends IdentifiedType
implements FactoryBean, InitializingBean, CamelContextAware, ApplicationContextAware

A Spring FactoryBean for creating a new ProducerTemplate instance with a minimum of XML

Version:
$Revision: 17208 $

Constructor Summary
CamelProducerTemplateFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 CamelContext getCamelContext()
          Get the CamelContext
 Object getObject()
           
 Class getObjectType()
           
 boolean isSingleton()
           
 void setApplicationContext(ApplicationContext applicationContext)
           
 void setCamelContext(CamelContext camelContext)
          Injects the CamelContext
 void setCamelContextId(String camelContextId)
           
 void setDefaultEndpoint(String defaultEndpoint)
          Sets the default endpoint URI used by default for sending message exchanges
 
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

CamelProducerTemplateFactoryBean

public CamelProducerTemplateFactoryBean()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface FactoryBean
Throws:
Exception

getObjectType

public Class getObjectType()
Specified by:
getObjectType in interface FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean

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

setDefaultEndpoint

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


setCamelContextId

public void setCamelContextId(String camelContextId)

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)
                           throws BeansException
Specified by:
setApplicationContext in interface ApplicationContextAware
Throws:
BeansException


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.