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 java.lang.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(org.apache.avalon.fortress.Container container,
org.apache.avalon.framework.service.ServiceManager parent)
This constructor is for a ContainerComponentManager with a parent
ComponentLocator |
Method Summary |
boolean |
hasService(java.lang.String role)
|
java.lang.Object |
lookup(java.lang.String role)
|
void |
release(java.lang.Object component)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FortressServiceManager
public FortressServiceManager(org.apache.avalon.fortress.Container container,
org.apache.avalon.framework.service.ServiceManager parent)
throws java.lang.NullPointerException
- This constructor is for a ContainerComponentManager with a parent
ComponentLocator
- Parameters:
container
- the implparent
- the parent service manager
- Throws:
java.lang.NullPointerException
- if the supplied impl is null
lookup
public java.lang.Object lookup(java.lang.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(java.lang.String role)
- Specified by:
hasService
in interface org.apache.avalon.framework.service.ServiceManager
release
public void release(java.lang.Object component)
- Specified by:
release
in interface org.apache.avalon.framework.service.ServiceManager
Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.