|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.camel.wrapper.CamelWrapper
public class CamelWrapper
Camel wrapper. A camel context is wrapped here.
| Constructor Summary | |
|---|---|
CamelWrapper(org.osgi.framework.BundleContext bundleContext)
Constructor, creates a new Camel context. |
|
| Method Summary | |
|---|---|
void |
addComponent(String componentName,
org.apache.camel.Component component)
Add a component on the given camel context. |
void |
addRoutes(org.apache.camel.builder.RouteBuilder builder)
Add a route. |
void |
addToTheRegistry(InputStream inputStream)
Add values to the registy. |
org.apache.camel.CamelContext |
getCamelContext()
|
String |
getCamelContextName()
Gets the camel context name. |
String |
getName()
Get the name of the camel context. |
org.apache.camel.ProducerTemplate |
getProducerTemplate()
Get a producer template for the camel context. |
org.ow2.jonas.camel.registry.xml.RegistryWrapper |
getRegistryWrapper()
|
List<org.apache.camel.model.RouteDefinition> |
getRouteDefinitions()
|
void |
removeFromTheRegistry(InputStream inputStream)
Remove values from the registy. |
void |
run()
Main method. |
void |
setName(String name)
Set the name of the camel context. |
void |
stopContext()
Stop the camel context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CamelWrapper(org.osgi.framework.BundleContext bundleContext)
bundleContext - Bundle context to use.| Method Detail |
|---|
public String getCamelContextName()
public void run()
throws Exception
Exception
public void stopContext()
throws Exception
stopContext in interface ICamelWrapperException - If stopping fails.
public void addRoutes(org.apache.camel.builder.RouteBuilder builder)
throws Exception
addRoutes in interface ICamelWrapperbuilder - the route to add.
Exception - If adding routes fails.public List<org.apache.camel.model.RouteDefinition> getRouteDefinitions()
getRouteDefinitions in interface ICamelWrapperpublic org.apache.camel.ProducerTemplate getProducerTemplate()
getProducerTemplate in interface ICamelWrapper
public void addComponent(String componentName,
org.apache.camel.Component component)
addComponent in interface ICamelWrappercomponentName - the component name.component - the component.public String getName()
public void setName(String name)
name - the name of the camel context.public org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface ICamelWrapper
public void addToTheRegistry(InputStream inputStream)
throws Exception
ICamelWrapper
addToTheRegistry in interface ICamelWrapperinputStream - the input stream containing the entire xml file that
defines the entries to add.
Exceptionpublic void removeFromTheRegistry(InputStream inputStream)
ICamelWrapper
removeFromTheRegistry in interface ICamelWrapperinputStream - the input stream containing the entire xml file that
defines the entries to remove.public org.ow2.jonas.camel.registry.xml.RegistryWrapper getRegistryWrapper()
getRegistryWrapper in interface ICamelWrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||