org.apache.camel.spring
Class CamelEndpointFactoryBean

java.lang.Object
  extended by org.apache.camel.model.IdentifiedType
      extended by org.apache.camel.spring.CamelEndpointFactoryBean
All Implemented Interfaces:
CamelContextAware, org.springframework.beans.factory.FactoryBean

public class CamelEndpointFactoryBean
extends IdentifiedType
implements org.springframework.beans.factory.FactoryBean, CamelContextAware

A FactoryBean which instantiates Endpoint objects

Version:
$Revision: 759657 $

Constructor Summary
CamelEndpointFactoryBean()
           
 
Method Summary
protected  Endpoint createEndpoint()
           
 CamelContext getCamelContext()
           
 Endpoint getEndpoint()
           
 Object getObject()
           
 Class getObjectType()
           
 String getUri()
           
 boolean isSingleton()
           
 void setCamelContext(CamelContext context)
          Sets the context to use to resolve endpoints
 void setEndpoint(Endpoint endpoint)
           
 void setSingleton(boolean singleton)
           
 void setUri(String uri)
          Sets the URI to use to resolve the endpoint
 
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

CamelEndpointFactoryBean

public CamelEndpointFactoryBean()
Method Detail

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

getCamelContext

public CamelContext getCamelContext()

setCamelContext

public void setCamelContext(CamelContext context)
Sets the context to use to resolve endpoints

Specified by:
setCamelContext in interface CamelContextAware
Parameters:
context - the context used to resolve endpoints

getEndpoint

public Endpoint getEndpoint()

setEndpoint

public void setEndpoint(Endpoint endpoint)

setSingleton

public void setSingleton(boolean singleton)

getUri

public String getUri()

setUri

public void setUri(String uri)
Sets the URI to use to resolve the endpoint

Parameters:
uri - the URI used to set the endpoint

createEndpoint

protected Endpoint createEndpoint()


Copyright © 2009 Apache Software Foundation. All Rights Reserved.