org.apache.servicemix.jbi.runtime.impl
Class ComponentRegistryImpl
java.lang.Object
org.apache.servicemix.nmr.core.ServiceRegistryImpl<ComponentWrapper>
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentRegistryImpl
public ComponentRegistryImpl()
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 registerproperties - 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.