org.apache.avalon.framework.component
Class DefaultComponentSelector
java.lang.Objectorg.apache.avalon.framework.component.DefaultComponentSelector
- Component, ComponentSelector
public class DefaultComponentSelector
extends java.lang.Object
Version:
- Avalon Development Team
protected void | checkWriteable()- Check if this component m_manager is writeable.
|
protected Map | getComponentMap()- Helper method for subclasses to retrieve component map.
|
boolean | hasComponent(Object hint)- Returns whether a Component exists or not
|
void | makeReadOnly()- Make this component selector read-only.
|
void | put(Object hint, Component component)- Populate the ComponentSelector.
|
void | release(Component component)- Release component.
|
Component | select(Object hint)- Select the desired component.
|
checkWriteable
protected final void checkWriteable()
throws IllegalStateException Check if this component m_manager is writeable.
getComponentMap
protected final Map getComponentMap()
Helper method for subclasses to retrieve component map.
- the component map
hasComponent
public boolean hasComponent(Object hint)
Returns whether a Component exists or not
- hasComponent in interface ComponentSelector
hint - the hint to retrieve Component
true if the Component exists
makeReadOnly
public void makeReadOnly()
Make this component selector read-only.
put
public void put(Object hint,
Component component) Populate the ComponentSelector.
hint - the hint to retrieve Componentcomponent - the component to add
"Copyright B) 2001 Apache Jakarta Project. All Rights Reserved."