org.apache.avalon.framework.component
Class WrapperComponentSelector
java.lang.Object
org.apache.avalon.framework.component.WrapperComponentSelector
- Component, ComponentSelector
public class WrapperComponentSelector
extends java.lang.Object
Version:
- Avalon Development Team
WrapperComponentSelector
public WrapperComponentSelector(String key,
ServiceSelector selector)
This constructor is a constructor for a WrapperComponentSelector.
key
- the key used to aquire this selectorselector
- the selector to wrap
hasComponent
public boolean hasComponent(Object policy)
Check to see if a
Component
exists relative to the supplied policy.
- hasComponent in interface ComponentSelector
policy
- a Object
containing the selection criteria
- True if the component is available, False if it not.
release
public void release(Component object)
Return the
Object
when you are finished with it. This
allows the
ServiceSelector
to handle the End-Of-Life Lifecycle
events associated with the
Object
. Please note, that no
Exception should be thrown at this point. This is to allow easy use of the
ServiceSelector system without having to trap Exceptions on a release.
- release in interface ComponentSelector
object
- The Object
we are releasing.
"Copyright B) 2001 Apache Jakarta Project. All Rights Reserved."