|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.avalon.framework.component.DefaultComponentSelector
This is the default implementation of the ComponentSelector.
Deprecated:
Use DefaultServiceSelector instead.
| Constructor Summary | |
DefaultComponentSelector()
|
|
| Method Summary | |
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. |
| 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(Object hint)
throws ComponentException
select in interface ComponentSelectorhint - the hint to retrieve Component
ComponentException - if an error occurspublic boolean hasComponent(Object hint)
hasComponent in interface ComponentSelectorhint - the hint to retrieve Component
true if the Component existspublic void release(Component component)
release in interface ComponentSelectorcomponent - the component
public void put(Object hint,
Component component)
hint - the hint to retrieve Componentcomponent - the component to addprotected final Map getComponentMap()
public void makeReadOnly()
protected final void checkWriteable()
throws IllegalStateException
IllegalStateException - if this component m_manager is read-only
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||