|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.component.DefaultComponentSelector
This is the default implementation of the ComponentSelector
| Constructor Summary | |
DefaultComponentSelector()
|
|
| Method Summary | |
protected void |
checkWriteable()
|
protected java.util.Map |
getComponentMap()
Helper method for subclasses to retrieve component map. |
boolean |
hasComponent(java.lang.Object hint)
Returns whether a Component exists or not |
void |
makeReadOnly()
|
void |
put(java.lang.Object hint,
Component component)
Populate the ComponentSelector. |
void |
release(Component component)
Release component. |
Component |
select(java.lang.Object hint)
Select the desired component. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultComponentSelector()
| Method Detail |
public Component select(java.lang.Object hint)
throws ComponentException
select in interface ComponentSelectorhint - the hint to retrieve Component
ComponentException - if an error occurspublic boolean hasComponent(java.lang.Object hint)
hasComponent in interface ComponentSelectorpublic void release(Component component)
release in interface ComponentSelectorcomponent - the component
public void put(java.lang.Object hint,
Component component)
protected final java.util.Map getComponentMap()
public void makeReadOnly()
protected final void checkWriteable()
throws java.lang.IllegalStateException
java.lang.IllegalStateException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||