org.apache.avalon.fortress.impl.lookup
Class FortressServiceManager
java.lang.Object
|
+--org.apache.avalon.fortress.impl.lookup.FortressServiceManager
- All Implemented Interfaces:
- ServiceManager
- public class FortressServiceManager
- extends Object
- implements ServiceManager
This is the Default ServiceManager for the Container. It provides
a very simple abstraction, and makes it easy for the Container to manage
the references.
- Version:
- CVS $Revision: 1.17 $ $Date: 2003/05/14 15:54:46 $
- Author:
- Avalon Development Team
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FortressServiceManager
public FortressServiceManager(Container container,
ServiceManager parent)
throws NullPointerException
- This constructor is for a ContainerComponentManager with a parent
ComponentLocator
- Parameters:
container
- the implparent
- the parent service manager
- Throws:
NullPointerException
- if the supplied impl is null
lookup
public Object lookup(String role)
throws ServiceException
- Specified by:
lookup
in interface ServiceManager
ServiceException
hasService
public boolean hasService(String role)
- Specified by:
hasService
in interface ServiceManager
release
public void release(Object component)
- Specified by:
release
in interface ServiceManager
Copyright © 2000-2002 Apache Avalon Project. All Rights Reserved.