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:
CamelContextAware, BeanClassLoaderAware, DisposableBean, FactoryBean, InitializingBean, ApplicationContextAware

public class CamelProxyFactoryBean
extends UrlBasedRemoteAccessor
implements FactoryBean, CamelContextAware, DisposableBean, 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()
           
 CamelContext getCamelContext()
          Get the CamelContext
 Endpoint getEndpoint()
           
 Object getObject()
           
 Class getObjectType()
           
 Class getServiceInterface()
           
 String getServiceRef()
           
 String getServiceUrl()
           
 boolean isSingleton()
           
 void setApplicationContext(ApplicationContext applicationContext)
           
 void setCamelContext(CamelContext camelContext)
          Injects the CamelContext
 void setCamelContextId(String contextId)
           
 void setEndpoint(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 InitializingBean
Overrides:
afterPropertiesSet in class UrlBasedRemoteAccessor

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface DisposableBean
Throws:
Exception

getServiceInterface

public Class getServiceInterface()
Overrides:
getServiceInterface in class RemoteAccessor

getServiceUrl

public String getServiceUrl()
Overrides:
getServiceUrl in class UrlBasedRemoteAccessor

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

getServiceRef

public String getServiceRef()

setServiceRef

public void setServiceRef(String serviceRef)

getEndpoint

public Endpoint getEndpoint()

setEndpoint

public void setEndpoint(Endpoint endpoint)

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

setCamelContextId

public void setCamelContextId(String contextId)

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.