org.apache.servicemix.camel
Class CamelContextEndpoint

java.lang.Object
  extended by org.apache.servicemix.common.endpoints.AbstractEndpoint
      extended by org.apache.servicemix.common.endpoints.SimpleEndpoint
          extended by org.apache.servicemix.common.endpoints.ProviderEndpoint
              extended by org.apache.servicemix.camel.CamelContextEndpoint
All Implemented Interfaces:
Endpoint

public class CamelContextEndpoint
extends ProviderEndpoint

JBI endpoint that provides access to an underlying CamelContext and manages the lifecycle for that endpoint


Field Summary
static javax.xml.namespace.QName SERVICE_NAME
          The default CamelContextEndpoint service name
 
Fields inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint
logger
 
Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint
definition, description, endpoint, interfaceName, service, serviceUnit
 
Constructor Summary
CamelContextEndpoint(org.apache.camel.CamelContext camelContext, java.lang.String su)
           
 
Method Summary
 org.apache.camel.CamelContext getCamelContext()
           
 void process(javax.jbi.messaging.MessageExchange exchange)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.apache.servicemix.common.endpoints.ProviderEndpoint
activate, deactivate, getRole, processInOnly, processInOut
 
Methods inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint
done, fail, getChannel, getContext, getExchangeFactory, send, sendSync
 
Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint
getDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SERVICE_NAME

public static final javax.xml.namespace.QName SERVICE_NAME
The default CamelContextEndpoint service name

Constructor Detail

CamelContextEndpoint

public CamelContextEndpoint(org.apache.camel.CamelContext camelContext,
                            java.lang.String su)
Method Detail

getCamelContext

public org.apache.camel.CamelContext getCamelContext()

process

public void process(javax.jbi.messaging.MessageExchange exchange)
             throws java.lang.Exception
Specified by:
process in interface Endpoint
Overrides:
process in class ProviderEndpoint
Throws:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface Endpoint
Overrides:
start in class SimpleEndpoint
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Specified by:
stop in interface Endpoint
Overrides:
stop in class SimpleEndpoint
Throws:
java.lang.Exception


Copyright © 2005-2012 FuseSource. All Rights Reserved.