org.apache.avalon.fortress.impl.lookup
Class FortressServiceSelector

java.lang.Object
  |
  +--org.apache.avalon.fortress.impl.lookup.FortressServiceSelector
All Implemented Interfaces:
ServiceSelector

public class FortressServiceSelector
extends Object
implements ServiceSelector

This is the Default ServiceSelector for the Container. It provides a very simple abstraction, and makes it easy for the Container to manage the references.

Version:
CVS $Revision: 1.14 $ $Date: 2003/05/28 17:50:20 $
Author:
Avalon Development Team

Constructor Summary
FortressServiceSelector(Container container, String key)
          Creation of new service selector.
 
Method Summary
 String getKey()
           
 boolean isSelectable(Object hint)
           
 void release(Object component)
           
 Object select(Object hint)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FortressServiceSelector

public FortressServiceSelector(Container container,
                               String key)
Creation of new service selector.

Parameters:
container - the impl
key - a key
Method Detail

select

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

isSelectable

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

release

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

getKey

public String getKey()


Copyright © 2000-2002 Apache Avalon Project. All Rights Reserved.