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
AFactoryBean
to 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 void
afterPropertiesSet()
void
destroy()
Boolean
getBinding()
org.apache.camel.CamelContext
getCamelContext()
org.apache.camel.Endpoint
getEndpoint()
Object
getObject()
Class<?>
getObjectType()
Class<?>
getServiceInterface()
String
getServiceRef()
String
getServiceUrl()
boolean
isSingleton()
void
setApplicationContext(ApplicationContext applicationContext)
void
setBinding(Boolean binding)
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
-
-
-
-
Constructor Detail
-
CamelProxyFactoryBean
public CamelProxyFactoryBean()
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interfaceInitializingBean
- Overrides:
afterPropertiesSet
in classUrlBasedRemoteAccessor
-
destroy
public void destroy() throws Exception
- Specified by:
destroy
in interfaceDisposableBean
- Throws:
Exception
-
getServiceInterface
public Class<?> getServiceInterface()
- Overrides:
getServiceInterface
in classRemoteAccessor
-
getServiceUrl
public String getServiceUrl()
- Overrides:
getServiceUrl
in classUrlBasedRemoteAccessor
-
getObject
public Object getObject() throws Exception
- Specified by:
getObject
in interfaceFactoryBean<Object>
- Throws:
Exception
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interfaceFactoryBean<Object>
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in 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:
getCamelContext
in interfaceorg.apache.camel.CamelContextAware
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext)
- Specified by:
setCamelContext
in interfaceorg.apache.camel.CamelContextAware
-
setCamelContextId
public void setCamelContextId(String contextId)
-
setApplicationContext
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
- Specified by:
setApplicationContext
in interfaceApplicationContextAware
- Throws:
BeansException
-
-