org.apache.cocoon.components
Class ComponentContext.ComponentSelectorWrapper

java.lang.Object
  extended by org.apache.cocoon.components.ComponentContext.ComponentSelectorWrapper
All Implemented Interfaces:
ServiceSelector
Enclosing class:
ComponentContext

public static final class ComponentContext.ComponentSelectorWrapper
extends Object
implements ServiceSelector


Field Summary
protected  ComponentSelector selector
           
 
Constructor Summary
ComponentContext.ComponentSelectorWrapper(ComponentSelector s)
           
 
Method Summary
 ComponentSelector getComponent()
           
 boolean isSelectable(Object role)
           
 void release(Object role)
           
 Object select(Object role)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

selector

protected final ComponentSelector selector
Constructor Detail

ComponentContext.ComponentSelectorWrapper

public ComponentContext.ComponentSelectorWrapper(ComponentSelector s)
Method Detail

isSelectable

public boolean isSelectable(Object role)
Specified by:
isSelectable in interface ServiceSelector

release

public void release(Object role)
Specified by:
release in interface ServiceSelector

select

public Object select(Object role)
              throws ServiceException
Specified by:
select in interface ServiceSelector
Throws:
ServiceException

getComponent

public ComponentSelector getComponent()


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.