org.ow2.jonas.camel.registry.impl.file
Class FileRegistryComponent

java.lang.Object
  extended by org.ow2.jonas.camel.registry.api.AbstractRegistryComponent
      extended by org.ow2.jonas.camel.registry.impl.file.FileRegistryComponent
All Implemented Interfaces:
org.apache.camel.Component

public class FileRegistryComponent
extends org.ow2.jonas.camel.registry.api.AbstractRegistryComponent


Constructor Summary
FileRegistryComponent()
           
 
Method Summary
 void addValues(java.io.InputStream input)
          Add values to the registry component.
protected  java.lang.String lookup(java.lang.String name)
          Look up a definition from the registry.
 void removeValues(java.io.InputStream input)
          Remove values to the registry component.
 void setFile(java.lang.String file)
          Set the registry map from the file.
 
Methods inherited from class org.ow2.jonas.camel.registry.api.AbstractRegistryComponent
createEndpoint, getCamelContext, setCamelContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileRegistryComponent

public FileRegistryComponent()
Method Detail

setFile

public void setFile(java.lang.String file)
             throws java.lang.Exception
Set the registry map from the file.

Parameters:
file - the file that owns the datas.
Throws:
java.lang.Exception - If anything fails.

addValues

public void addValues(java.io.InputStream input)
               throws java.lang.Exception
Add values to the registry component.

Specified by:
addValues in class org.ow2.jonas.camel.registry.api.AbstractRegistryComponent
Parameters:
input - the inputStream that contains what to add.
Throws:
java.lang.Exception

removeValues

public void removeValues(java.io.InputStream input)
Remove values to the registry component.

Specified by:
removeValues in class org.ow2.jonas.camel.registry.api.AbstractRegistryComponent
Parameters:
input - the inputStream that contains what to add.

lookup

protected java.lang.String lookup(java.lang.String name)
                           throws java.lang.Exception
Look up a definition from the registry.

Specified by:
lookup in class org.ow2.jonas.camel.registry.api.AbstractRegistryComponent
Parameters:
name - the name of the definition to lookup.
Returns:
the technical definition.
Throws:
java.lang.Exception - If anything fails.


Copyright © 2009 OW2 Consortium. All Rights Reserved.