public class DefaultComponentSelector
extends java.lang.Object
Deprecated:
Use DefaultServiceSelector
instead.
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap |
m_components |
private boolean |
m_readOnly |
Constructor and Description |
---|
DefaultComponentSelector() |
Modifier and Type | Method and Description |
---|---|
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.
|
private final java.util.HashMap m_components
private boolean m_readOnly
public Component select(java.lang.Object hint) throws ComponentException
hint
- the hint to retrieve ComponentComponentException
- if an error occurspublic boolean hasComponent(java.lang.Object hint)
hint
- the hint to retrieve Componenttrue
if the Component existspublic void release(Component component)
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 m_manager is read-only