org.apache.servicemix.jbi.framework
Class ComponentRegistry

java.lang.Object
  extended by org.apache.servicemix.jbi.framework.ComponentRegistry

public class ComponentRegistry
extends Object

Registry for Components

Version:
$Revision: 564374 $

Constructor Summary
protected ComponentRegistry(Registry reg)
           
 
Method Summary
 void deregisterComponent(ComponentMBeanImpl component)
          Deregister a Component
 ComponentMBeanImpl getComponent(ComponentNameSpace id)
          Get a registered ComponentConnector from it's id
 Collection<ComponentMBeanImpl> getComponents()
           
 ComponentMBeanImpl registerComponent(ComponentNameSpace name, String description, javax.jbi.component.Component component, boolean binding, boolean service, String[] sharedLibraries)
          Register a Component
 void shutDown()
          shutdown all Components
 void start()
          start components
 void stop()
          stop components
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentRegistry

protected ComponentRegistry(Registry reg)
Method Detail

registerComponent

public ComponentMBeanImpl registerComponent(ComponentNameSpace name,
                                            String description,
                                            javax.jbi.component.Component component,
                                            boolean binding,
                                            boolean service,
                                            String[] sharedLibraries)
Register a Component

Parameters:
name -
description -
component -
dc -
binding -
service -
Returns:
an associated ComponentConnector or null if it already exists

start

public void start()
           throws javax.jbi.JBIException
start components

Throws:
javax.jbi.JBIException

stop

public void stop()
          throws javax.jbi.JBIException
stop components

Throws:
javax.jbi.JBIException
javax.jbi.JBIException

shutDown

public void shutDown()
              throws javax.jbi.JBIException
shutdown all Components

Throws:
javax.jbi.JBIException

deregisterComponent

public void deregisterComponent(ComponentMBeanImpl component)
Deregister a Component

Parameters:
component -

getComponent

public ComponentMBeanImpl getComponent(ComponentNameSpace id)
Get a registered ComponentConnector from it's id

Parameters:
id -
Returns:
the ComponentConnector or null

getComponents

public Collection<ComponentMBeanImpl> getComponents()
Returns:
Collection of ComponentConnectors held by the registry


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.