|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.component.ComponentRegistry
public class ComponentRegistry
Registry that manages components. It allows to get components.
Field Summary | |
---|---|
private java.util.Map<java.lang.String,EZBComponent> |
components
Map of components. Name <--> Implementation of the component |
private JLog |
logger
Logger. |
Constructor Summary | |
---|---|
ComponentRegistry()
Constructor. |
Method Summary | |
---|---|
EZBComponent |
getComponent(java.lang.String componentName)
Allow to get a reference on another component. |
java.lang.String |
getComponentName(EZBComponent component)
|
void |
register(java.lang.String componentName,
EZBComponent component)
Register a component. |
void |
unregister(EZBComponent component)
Unregister a component. |
void |
unregister(java.lang.String componentName)
Unregister a component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private JLog logger
private java.util.Map<java.lang.String,EZBComponent> components
Constructor Detail |
---|
public ComponentRegistry()
Method Detail |
---|
public void register(java.lang.String componentName, EZBComponent component) throws EZBComponentException
componentName
- the name of the component to registercomponent
- the component to register.
EZBComponentException
- if registering fails.public void unregister(java.lang.String componentName) throws EZBComponentException
componentName
- the component name to unregister.
EZBComponentException
- if unregistering fails.public void unregister(EZBComponent component) throws EZBComponentException
component
- the instance of the component to unregister.
EZBComponentException
- if unregistering fails.public EZBComponent getComponent(java.lang.String componentName)
componentName
- the name of the component
public java.lang.String getComponentName(EZBComponent component)
component
- EZBComponent instance.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |