|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.util.component.ComponentRegistry
public class ComponentRegistry
Registry that manages components. It allows to get components.
| Constructor Summary | |
|---|---|
ComponentRegistry()
Constructor. |
|
| Method Summary | ||
|---|---|---|
org.ow2.util.component.api.Component |
getComponent(String componentName)
Allow to get a reference on another component. |
|
String |
getComponentName(org.ow2.util.component.api.Component component)
|
|
|
getComponents(Class<T> itf)
Get the components that implements the given interface. |
|
void |
register(String componentName,
org.ow2.util.component.api.Component component)
Register a component. |
|
void |
unregister(org.ow2.util.component.api.Component component)
Unregister a component. |
|
void |
unregister(String componentName)
Unregister a component. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentRegistry()
| Method Detail |
|---|
public void register(String componentName,
org.ow2.util.component.api.Component component)
throws org.ow2.util.component.api.ComponentException
register in interface org.ow2.util.component.api.IComponentRegistrycomponentName - the name of the component to registercomponent - the component to register.
org.ow2.util.component.api.ComponentException - if registering fails.
public void unregister(String componentName)
throws org.ow2.util.component.api.ComponentException
unregister in interface org.ow2.util.component.api.IComponentRegistrycomponentName - the component name to unregister.
org.ow2.util.component.api.ComponentException - if unregistering fails.
public void unregister(org.ow2.util.component.api.Component component)
throws org.ow2.util.component.api.ComponentException
unregister in interface org.ow2.util.component.api.IComponentRegistrycomponent - the instance of the component to unregister.
org.ow2.util.component.api.ComponentException - if unregistering fails.public org.ow2.util.component.api.Component getComponent(String componentName)
getComponent in interface org.ow2.util.component.api.IComponentRegistrycomponentName - the name of the component
public String getComponentName(org.ow2.util.component.api.Component component)
getComponentName in interface org.ow2.util.component.api.IComponentRegistrycomponent - EZBComponent instance.
public <T extends org.ow2.util.component.api.Component> List<T> getComponents(Class<T> itf)
getComponents in interface org.ow2.util.component.api.IComponentRegistryT - an interface extending EZBComponent.itf - the given interface
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||