| 
 | |||||||||||
| 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.
  Deprecated: 
    Use DefaultServiceSelector instead.
  
 
| Constructor Summary | |
| DefaultComponentSelector() | |
| Method Summary | |
| protected  void | checkWriteable()Check if this component m_manager is writeable. | 
| 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()Make this component selector read-only. | 
|  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 ComponentSelectorhint - the hint to retrieve Component
true if the Component existspublic void release(Component component)
release in interface ComponentSelectorcomponent - the component
public 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 m_manager is read-only| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||