org.apache.servicemix.jbi.runtime.impl
Class ComponentRegistryImpl

java.lang.Object
  extended by org.apache.servicemix.nmr.core.ServiceRegistryImpl<ComponentWrapper>
      extended by org.apache.servicemix.jbi.runtime.impl.ComponentRegistryImpl
All Implemented Interfaces:
ComponentRegistry, ServiceRegistry<ComponentWrapper>

public class ComponentRegistryImpl
extends ServiceRegistryImpl<ComponentWrapper>
implements ComponentRegistry

Registry of JBI components objects


Field Summary
 
Fields inherited from interface org.apache.servicemix.jbi.runtime.ComponentRegistry
NAME, TYPE
 
Constructor Summary
ComponentRegistryImpl()
           
 
Method Summary
 javax.jbi.component.ComponentContext createComponentContext()
          Create a JBI ComponentContext that can be used to send messages to the JBI bus.
protected  void doRegister(ComponentWrapper component, Map<String,?> properties)
          Register a service with the given metadata.
protected  void doUnregister(ComponentWrapper component, Map<String,?> properties)
          Unregister a previously registered component.
 ComponentWrapper getComponent(String name)
          Retrieve a component given its name
 DocumentRepository getDocumentRepository()
           
 Environment getEnvironment()
           
 NMR getNmr()
           
 void setDocumentRepository(DocumentRepository documentRepository)
           
 void setEnvironment(Environment environment)
           
 void setNmr(NMR nmr)
           
 
Methods inherited from class org.apache.servicemix.nmr.core.ServiceRegistryImpl
getProperties, getServices, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.servicemix.nmr.api.service.ServiceRegistry
getProperties, getServices, register, unregister
 

Constructor Detail

ComponentRegistryImpl

public ComponentRegistryImpl()
Method Detail

getNmr

public NMR getNmr()

setNmr

public void setNmr(NMR nmr)

getEnvironment

public Environment getEnvironment()

setEnvironment

public void setEnvironment(Environment environment)

getDocumentRepository

public DocumentRepository getDocumentRepository()

setDocumentRepository

public void setDocumentRepository(DocumentRepository documentRepository)

doRegister

protected void doRegister(ComponentWrapper component,
                          Map<String,?> properties)
                   throws javax.jbi.JBIException
Register a service with the given metadata.

Overrides:
doRegister in class ServiceRegistryImpl<ComponentWrapper>
Parameters:
component - the component to register
properties - the associated metadata
Throws:
javax.jbi.JBIException

doUnregister

protected void doUnregister(ComponentWrapper component,
                            Map<String,?> properties)
                     throws javax.jbi.JBIException
Unregister a previously registered component.

Overrides:
doUnregister in class ServiceRegistryImpl<ComponentWrapper>
Parameters:
component - the component to unregister
Throws:
javax.jbi.JBIException

getComponent

public ComponentWrapper getComponent(String name)
Description copied from interface: ComponentRegistry
Retrieve a component given its name

Specified by:
getComponent in interface ComponentRegistry
Parameters:
name - the name of the component
Returns:
the component, or null if not registered

createComponentContext

public javax.jbi.component.ComponentContext createComponentContext()
Description copied from interface: ComponentRegistry
Create a JBI ComponentContext that can be used to send messages to the JBI bus. The ComponentContext has limited capabilities and can not be used to activate endpoints.

Specified by:
createComponentContext in interface ComponentRegistry
Returns:


Copyright © 2005-2012 FuseSource. All Rights Reserved.