org.apache.avalon.fortress.impl.lookup
Class FortressServiceManager
java.lang.Object
org.apache.avalon.fortress.impl.lookup.FortressServiceManager
- All Implemented Interfaces:
- org.apache.avalon.framework.service.ServiceManager
public class FortressServiceManager
- extends Object
- implements org.apache.avalon.framework.service.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.22 $ $Date: 2004/03/13 17:57:59 $
- Author:
- Avalon Development Team
Constructor Summary |
FortressServiceManager(Container container,
org.apache.avalon.framework.service.ServiceManager parent)
This constructor is for a ContainerComponentManager with a parent
ComponentLocator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FortressServiceManager
public FortressServiceManager(Container container,
org.apache.avalon.framework.service.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 org.apache.avalon.framework.service.ServiceException
- Specified by:
lookup
in interface org.apache.avalon.framework.service.ServiceManager
- Throws:
org.apache.avalon.framework.service.ServiceException
hasService
public boolean hasService(String role)
- Specified by:
hasService
in interface org.apache.avalon.framework.service.ServiceManager
release
public void release(Object component)
- Specified by:
release
in interface org.apache.avalon.framework.service.ServiceManager
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.