Package org.apache.camel.spring.remoting
Class CamelProxyFactoryBean
- java.lang.Object
-
- org.springframework.remoting.support.RemotingSupport
-
- org.springframework.remoting.support.RemoteAccessor
-
- org.springframework.remoting.support.UrlBasedRemoteAccessor
-
- org.apache.camel.spring.remoting.CamelProxyFactoryBean
-
- All Implemented Interfaces:
org.apache.camel.CamelContextAware,Aware,BeanClassLoaderAware,DisposableBean,FactoryBean<Object>,InitializingBean,ApplicationContextAware
public class CamelProxyFactoryBean extends UrlBasedRemoteAccessor implements FactoryBean<Object>, org.apache.camel.CamelContextAware, DisposableBean, ApplicationContextAware
AFactoryBeanto create a Proxy to a a Camel Pojo Endpoint.
-
-
Field Summary
-
Fields inherited from class org.springframework.remoting.support.RemotingSupport
logger
-
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description CamelProxyFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voiddestroy()BooleangetBinding()org.apache.camel.CamelContextgetCamelContext()org.apache.camel.EndpointgetEndpoint()ObjectgetObject()Class<?>getObjectType()Class<?>getServiceInterface()StringgetServiceRef()StringgetServiceUrl()booleanisSingleton()voidsetApplicationContext(ApplicationContext applicationContext)voidsetBinding(Boolean binding)voidsetCamelContext(org.apache.camel.CamelContext camelContext)voidsetCamelContextId(String contextId)voidsetEndpoint(org.apache.camel.Endpoint endpoint)voidsetServiceRef(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
-
-
-
-
Constructor Detail
-
CamelProxyFactoryBean
public CamelProxyFactoryBean()
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceInitializingBean- Overrides:
afterPropertiesSetin classUrlBasedRemoteAccessor
-
destroy
public void destroy() throws Exception
- Specified by:
destroyin interfaceDisposableBean- Throws:
Exception
-
getServiceInterface
public Class<?> getServiceInterface()
- Overrides:
getServiceInterfacein classRemoteAccessor
-
getServiceUrl
public String getServiceUrl()
- Overrides:
getServiceUrlin classUrlBasedRemoteAccessor
-
getObject
public Object getObject() throws Exception
- Specified by:
getObjectin interfaceFactoryBean<Object>- Throws:
Exception
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectTypein interfaceFactoryBean<Object>
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingletonin interfaceFactoryBean<Object>
-
getServiceRef
public String getServiceRef()
-
setServiceRef
public void setServiceRef(String serviceRef)
-
getBinding
public Boolean getBinding()
-
setBinding
public void setBinding(Boolean binding)
-
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:
getCamelContextin interfaceorg.apache.camel.CamelContextAware
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext)
- Specified by:
setCamelContextin interfaceorg.apache.camel.CamelContextAware
-
setCamelContextId
public void setCamelContextId(String contextId)
-
setApplicationContext
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
- Specified by:
setApplicationContextin interfaceApplicationContextAware- Throws:
BeansException
-
-