|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.camel.registry.xml.RegistryWrapper
public class RegistryWrapper
Wraps a Registry for a given CamelContext. A new
SimpleRegistry is aggregated to the current registry of the context.
This new resgistry will store all the entries parsed from xml files.
Here is an example of the registry file:
<registry xmlns="http://jonas.ow2.org/camel-file-registry-1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jonas.ow2.org/camel-file-registry-1.0
http://jonas.ow2.org/ns/camel-registry/file-registry-1.0.xsd">
<entry>
<logicalName>queue</logicalName>
<technicalName>test-jms:queue:sampleQueue</technicalName>
</entry>
<entry>
<logicalName>multiline-with-spaces</logicalName>
<technicalName>
file://C:
/Documents and Settings/
My User
</technicalName>
</entry>
</registry>
| Constructor Summary | |
|---|---|
RegistryWrapper()
Public constructor. |
|
| Method Summary | |
|---|---|
void |
addToTheRegistry(java.io.InputStream inputStream)
Add entries parsed from xml files into the wrapped registry. |
void |
addValues(java.io.InputStream input)
Add entries parsed from an XML file into the wrapped registry. |
org.apache.camel.osgi.CompositeRegistry |
createRegistry(org.apache.camel.CamelContext ctxt)
Creates a CompositeRegistry containing the current context of the
registry , added in first position, plus a SimpleRegistry where
all entries parsed from xml files will be stored. |
void |
createRegistryAndAssignToContext(org.apache.camel.impl.DefaultCamelContext ctxt)
Set the current Camel context |
org.apache.camel.impl.SimpleRegistry |
getRegistry()
Gets the SimpleRegistry containing entries parsed from xml files. |
void |
removeFromTheRegistry(java.io.InputStream inputStream)
Removes entries from the registry component. |
void |
setRegistry(org.apache.camel.impl.SimpleRegistry registry)
Sets the registry that will store entries parsed from xml files. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegistryWrapper()
| Method Detail |
|---|
public org.apache.camel.impl.SimpleRegistry getRegistry()
SimpleRegistry containing entries parsed from xml files.
public void setRegistry(org.apache.camel.impl.SimpleRegistry registry)
registry - the registry to setpublic org.apache.camel.osgi.CompositeRegistry createRegistry(org.apache.camel.CamelContext ctxt)
CompositeRegistry containing the current context of the
registry , added in first position, plus a SimpleRegistry where
all entries parsed from xml files will be stored.
ctxt - the CamelContext
CompositeRegistry.
public void addValues(java.io.InputStream input)
throws java.lang.Exception
input - The stream of the registry file that will be parsed to get
registry entries.
java.lang.Exception - any.RegistryWrapper} for the XML file example.
public void addToTheRegistry(java.io.InputStream inputStream)
throws java.lang.Exception
input - The stream of the registry file that will be parsed to get
registry entries.
java.lang.Exception - any.RegistryWrapper} for the XML file example.
public void removeFromTheRegistry(java.io.InputStream inputStream)
throws java.lang.IllegalArgumentException
input - the stream of the registry file that will be parsed to get
registry entries.
java.lang.IllegalArgumentException - if removal of any entry failsRegistryWrapper} for the XML file example.public void createRegistryAndAssignToContext(org.apache.camel.impl.DefaultCamelContext ctxt)
ctxt - the context to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||