|
||||||||||
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
DefaultServiceSelector
instead.
This is the default implementation of the ComponentSelector
Constructor Summary | |
DefaultComponentSelector()
Deprecated. |
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. |
boolean |
hasComponent(java.lang.Object hint)
Deprecated. Returns whether a Component exists or not |
void |
makeReadOnly()
Deprecated. Make this component selector read-only. |
void |
put(java.lang.Object hint,
Component component)
Deprecated. Populate the ComponentSelector. |
void |
release(Component component)
Deprecated. Release component. |
Component |
select(java.lang.Object hint)
Deprecated. 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 ComponentSelector
hint
- the hint to retrieve Component
ComponentException
- if an error occurspublic boolean hasComponent(java.lang.Object hint)
hasComponent
in interface ComponentSelector
hint
- the hint to retrieve Component
true
if the Component existspublic void release(Component component)
release
in interface ComponentSelector
component
- the componentpublic void put(java.lang.Object hint, Component component)
hint
- the hint to retrieve Componentcomponent
- the component to addprotected 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 |