org.apache.camel.spring.remoting
Class CamelProxyFactoryBean

java.lang.Object
  extended by org.springframework.remoting.support.RemotingSupport
      extended by org.springframework.remoting.support.RemoteAccessor
          extended by org.springframework.remoting.support.UrlBasedRemoteAccessor
              extended by org.apache.camel.spring.remoting.CamelProxyFactoryBean
All Implemented Interfaces:
org.apache.camel.CamelContextAware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<Object>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class CamelProxyFactoryBean
extends org.springframework.remoting.support.UrlBasedRemoteAccessor
implements org.springframework.beans.factory.FactoryBean<Object>, org.apache.camel.CamelContextAware, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware

A FactoryBean to create a Proxy to a a Camel Pojo Endpoint.


Field Summary
 
Fields inherited from class org.springframework.remoting.support.RemotingSupport
logger
 
Constructor Summary
CamelProxyFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 org.apache.camel.CamelContext getCamelContext()
           
 org.apache.camel.Endpoint getEndpoint()
           
 Object getObject()
           
 Class<?> getObjectType()
           
 Class<?> getServiceInterface()
           
 String getServiceRef()
           
 String getServiceUrl()
           
 boolean isSingleton()
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setCamelContext(org.apache.camel.CamelContext camelContext)
           
 void setCamelContextId(String contextId)
           
 void setEndpoint(org.apache.camel.Endpoint endpoint)
           
 void setServiceRef(String serviceRef)
           
 
Methods inherited from class org.springframework.remoting.support.UrlBasedRemoteAccessor
setServiceUrl
 
Methods inherited from class org.springframework.remoting.support.RemoteAccessor
setServiceInterface
 
Methods inherited from class org.springframework.remoting.support.RemotingSupport
getBeanClassLoader, overrideThreadContextClassLoader, resetThreadContextClassLoader, setBeanClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CamelProxyFactoryBean

public CamelProxyFactoryBean()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Overrides:
afterPropertiesSet in class org.springframework.remoting.support.UrlBasedRemoteAccessor

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
Exception

getServiceInterface

public Class<?> getServiceInterface()
Overrides:
getServiceInterface in class org.springframework.remoting.support.RemoteAccessor

getServiceUrl

public String getServiceUrl()
Overrides:
getServiceUrl in class org.springframework.remoting.support.UrlBasedRemoteAccessor

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<Object>
Throws:
Exception

getObjectType

public Class<?> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<Object>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean<Object>

getServiceRef

public String getServiceRef()

setServiceRef

public void setServiceRef(String serviceRef)

getEndpoint

public org.apache.camel.Endpoint getEndpoint()

setEndpoint

public void setEndpoint(org.apache.camel.Endpoint endpoint)

getCamelContext

public org.apache.camel.CamelContext getCamelContext()
Specified by:
getCamelContext in interface org.apache.camel.CamelContextAware

setCamelContext

public void setCamelContext(org.apache.camel.CamelContext camelContext)
Specified by:
setCamelContext in interface org.apache.camel.CamelContextAware

setCamelContextId

public void setCamelContextId(String contextId)

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException


Apache CAMEL