org.ow2.jonas.camel.registry.api
Class AbstractRegistryComponent

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

public abstract class AbstractRegistryComponent
extends java.lang.Object
implements org.apache.camel.Component


Constructor Summary
AbstractRegistryComponent()
           
 
Method Summary
abstract  void addValues(java.io.InputStream input)
          Add values to the registry.
 org.apache.camel.Endpoint createEndpoint(java.lang.String name)
          Create the AbstractRegistryComponent endpoint.
 org.apache.camel.CamelContext getCamelContext()
          Return the camel context.
protected abstract  java.lang.String lookup(java.lang.String name)
          Look up a definition from the registry.
abstract  void removeValues(java.io.InputStream input)
          Remove values from the registry.
 void setCamelContext(org.apache.camel.CamelContext context)
          Set the camel context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRegistryComponent

public AbstractRegistryComponent()
Method Detail

getCamelContext

public org.apache.camel.CamelContext getCamelContext()
Return the camel context.

Specified by:
getCamelContext in interface org.apache.camel.Component
Returns:
the camel context.

setCamelContext

public void setCamelContext(org.apache.camel.CamelContext context)
Set the camel context.

Specified by:
setCamelContext in interface org.apache.camel.Component
Parameters:
context - the camel context to set.

createEndpoint

public org.apache.camel.Endpoint createEndpoint(java.lang.String name)
                                         throws java.lang.Exception
Create the AbstractRegistryComponent endpoint.

Specified by:
createEndpoint in interface org.apache.camel.Component
Throws:
java.lang.Exception

lookup

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

Parameters:
name - the name of the definition to lookup.
Returns:
the technical definition.
Throws:
java.lang.Exception

addValues

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

Parameters:
input - InputStream containing the values to add.
Throws:
java.lang.Exception

removeValues

public abstract void removeValues(java.io.InputStream input)
                           throws java.lang.Exception
Remove values from the registry.

Parameters:
input - InputStream containing the values to remove.
Throws:
java.lang.Exception


Copyright © 2009 OW2 Consortium. All Rights Reserved.