|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.component.DefaultComponentManager
DefaultServiceManager
instead.
This class is a static implementation of a ComponentManager. Allow ineritance and extension so you can generate a tree of ComponentManager each defining Component scope.
Constructor Summary | |
DefaultComponentManager()
Deprecated. Construct ComponentManager with no parent. |
|
DefaultComponentManager(ComponentManager parent)
Deprecated. Construct ComponentManager with specified parent. |
Method Summary | |
protected void |
checkWriteable()
Deprecated. Check if this component manager is writeable. |
protected java.util.Map |
getComponentMap()
Deprecated. Helper method for subclasses to retrieve component map. |
protected ComponentManager |
getParent()
Deprecated. Helper method for subclasses to retrieve parent. |
boolean |
hasComponent(java.lang.String role)
Deprecated. Returns true if the component manager is managing a component
with the specified role, false otherwise. |
Component |
lookup(java.lang.String role)
Deprecated. Retrieve Component by role from ComponentManager. |
void |
makeReadOnly()
Deprecated. Make this component manager read only. |
void |
put(java.lang.String role,
Component component)
Deprecated. Place Component into ComponentManager. |
void |
release(Component component)
Deprecated. Release component. |
java.lang.String |
toString()
Deprecated. Build a human readable representation of ComponentManager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DefaultComponentManager()
public DefaultComponentManager(ComponentManager parent)
parent
- the ComponentManagers parentMethod Detail |
public Component lookup(java.lang.String role) throws ComponentException
lookup
in interface ComponentManager
role
- the role
ComponentException
- if an error occurspublic boolean hasComponent(java.lang.String role)
true
if the component manager is managing a component
with the specified role, false
otherwise.
hasComponent
in interface ComponentManager
role
- role of the component you are lokking for
true
if the component manager has a component with that rolepublic void put(java.lang.String role, Component component)
role
- the components rolecomponent
- the componentpublic void release(Component component)
release
in interface ComponentManager
component
- the componentpublic java.lang.String toString()
toString
in class java.lang.Object
protected final ComponentManager getParent()
protected final java.util.Map getComponentMap()
public void makeReadOnly()
protected final void checkWriteable() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if this component manager is read-only
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |