|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EZBComponentRegistry
This interface is the registry of the EasyBeans Components.
Method Summary | ||
---|---|---|
EZBComponent |
getComponent(java.lang.String componentName)
Allow to get a reference on another component. |
|
java.lang.String |
getComponentName(EZBComponent component)
|
|
|
getComponents(java.lang.Class<T> itf)
Get the components that implements the given interface. |
|
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. |
Method Detail |
---|
EZBComponent getComponent(java.lang.String componentName)
componentName
- the name of the component
java.lang.String getComponentName(EZBComponent component)
component
- EZBComponent instance.
<T extends EZBComponent> java.util.List<T> getComponents(java.lang.Class<T> itf)
T
- an interface extending EZBComponent.itf
- the given interface
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.void unregister(java.lang.String componentName) throws EZBComponentException
componentName
- the component name to unregister.
EZBComponentException
- if unregistering fails.void unregister(EZBComponent component) throws EZBComponentException
component
- the instance of the component to unregister.
EZBComponentException
- if unregistering fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |