org.ow2.jonas.camel.wrapper
Interface ICamelWrapper

All Known Implementing Classes:
CamelWrapper

public interface ICamelWrapper

Author:
Guillaume Renault

Method Summary
 void addComponent(java.lang.String componentName, org.apache.camel.Component component)
          Add a component on the given camel context.
 void addRoutes(org.apache.camel.builder.RouteBuilder builder)
           
 void addToTheRegistry(java.io.InputStream inputStream)
          Add values to the registy.
 org.apache.camel.CamelContext getCamelContext()
           
 org.apache.camel.ProducerTemplate getProducerTemplate()
          Get a producer template for the camel context.
 RegistryWrapper getRegistryWrapper()
           
 java.util.List<org.apache.camel.model.RouteDefinition> getRouteDefinitions()
           
 void removeFromTheRegistry(java.io.InputStream inputStream)
          Remove values from the registy.
 void stopContext()
          Stop the camel context.
 

Method Detail

getProducerTemplate

org.apache.camel.ProducerTemplate getProducerTemplate()
Get a producer template for the camel context.

Returns:
a producer for the camel context.

stopContext

void stopContext()
                 throws java.lang.Exception
Stop the camel context.

Throws:
java.lang.Exception - If stopping fails.

addRoutes

void addRoutes(org.apache.camel.builder.RouteBuilder builder)
               throws java.lang.Exception
Parameters:
builder - the route to add.
Throws:
java.lang.Exception - If adding routes fails.

getRouteDefinitions

java.util.List<org.apache.camel.model.RouteDefinition> getRouteDefinitions()
Returns:
the list of deployed routes on the camel context.

addToTheRegistry

void addToTheRegistry(java.io.InputStream inputStream)
                      throws java.lang.Exception
Add values to the registy.

Parameters:
inputStream - the input stream containing the entire xml file that defines the entries to add.
Throws:
java.lang.Exception

removeFromTheRegistry

void removeFromTheRegistry(java.io.InputStream inputStream)
Remove values from the registy.

Parameters:
inputStream - the input stream containing the entire xml file that defines the entries to remove.

getRegistryWrapper

RegistryWrapper getRegistryWrapper()
Returns:
the registry wrapper.

addComponent

void addComponent(java.lang.String componentName,
                  org.apache.camel.Component component)
Add a component on the given camel context.

Parameters:
componentName - the component name.
component - the component.

getCamelContext

org.apache.camel.CamelContext getCamelContext()
Returns:
the wrapped camel instance.



Copyright © 2011 OW2 Consortium. All Rights Reserved.
Apache Camel version 2.5.0, OW2 JOnAS version 5.2.0-M3