|
||||||||||
| 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.apache.camel.osgi.CamelContextFactory factory)
Constructor, creates a new Camel context. |
|
| 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)
Add a route. |
void |
addToTheRegistry(java.io.InputStream inputStream)
Add values to the registy. |
org.apache.camel.CamelContext |
getCamelContext()
|
java.lang.String |
getCamelContextName()
Gets the camel context name. |
java.lang.String |
getName()
Get the name of the camel context. |
org.apache.camel.ProducerTemplate |
getProducerTemplate()
Get a producer template for the camel context. |
java.util.List<org.apache.camel.model.RouteDefinition> |
getRouteDefinitions()
|
void |
removeFromTheRegistry(java.io.InputStream inputStream)
Remove values from the registy. |
void |
run()
Main method. |
void |
setName(java.lang.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.apache.camel.osgi.CamelContextFactory factory)
factory - Camel context factory to use.| Method Detail |
|---|
public java.lang.String getCamelContextName()
public void run()
throws java.lang.Exception
java.lang.Exception
public void stopContext()
throws java.lang.Exception
stopContext in interface ICamelWrapperjava.lang.Exception - If stopping fails.
public void addRoutes(org.apache.camel.builder.RouteBuilder builder)
throws java.lang.Exception
addRoutes in interface ICamelWrapperbuilder - the route to add.
java.lang.Exception - If adding routes fails.public java.util.List<org.apache.camel.model.RouteDefinition> getRouteDefinitions()
getRouteDefinitions in interface ICamelWrapperpublic org.apache.camel.ProducerTemplate getProducerTemplate()
getProducerTemplate in interface ICamelWrapper
public void addComponent(java.lang.String componentName,
org.apache.camel.Component component)
addComponent in interface ICamelWrappercomponentName - the component name.component - the component.public java.lang.String getName()
public void setName(java.lang.String name)
name - the name of the camel context.public org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface ICamelWrapper
public void addToTheRegistry(java.io.InputStream inputStream)
throws java.lang.Exception
ICamelWrapper
addToTheRegistry in interface ICamelWrapperinputStream - the input stream containing the entire xml file that
defines the entries to add.
java.lang.Exceptionpublic void removeFromTheRegistry(java.io.InputStream inputStream)
ICamelWrapper
removeFromTheRegistry in interface ICamelWrapperinputStream - the input stream containing the entire xml file that
defines the entries to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||