org.apache.camel.spring.remoting
Class CamelServiceExporter

java.lang.Object
  extended by org.springframework.remoting.support.RemotingSupport
      extended by org.springframework.remoting.support.RemoteExporter
          extended by org.apache.camel.spring.remoting.CamelServiceExporter
All Implemented Interfaces:
CamelContextAware, BeanClassLoaderAware, DisposableBean, InitializingBean, ApplicationContextAware

public class CamelServiceExporter
extends RemoteExporter
implements InitializingBean, DisposableBean, ApplicationContextAware, CamelContextAware

A FactoryBean to create a proxy to a service exposing a given RemoteExporter.getServiceInterface()


Field Summary
 
Fields inherited from class org.springframework.remoting.support.RemotingSupport
logger
 
Constructor Summary
CamelServiceExporter()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 ApplicationContext getApplicationContext()
           
 CamelContext getCamelContext()
          Get the CamelContext
 String getServiceRef()
           
 String getUri()
           
 void setApplicationContext(ApplicationContext applicationContext)
           
 void setCamelContext(CamelContext camelContext)
          Injects the CamelContext
 void setCamelContextId(String camelContextId)
           
 void setServiceRef(String serviceRef)
           
 void setUri(String uri)
           
 
Methods inherited from class org.springframework.remoting.support.RemoteExporter
checkService, checkServiceInterface, getExporterName, getProxyForService, getService, getServiceInterface, setInterceptors, setRegisterTraceInterceptor, setService, 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

CamelServiceExporter

public CamelServiceExporter()
Method Detail

getUri

public String getUri()

setUri

public void setUri(String uri)

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 camelContextId)

getServiceRef

public String getServiceRef()

setServiceRef

public void setServiceRef(String serviceRef)

getApplicationContext

public ApplicationContext getApplicationContext()

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)
                           throws BeansException
Specified by:
setApplicationContext in interface ApplicationContextAware
Throws:
BeansException

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

destroy

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


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.