public class FortressServiceManager
extends java.lang.Object
implements org.apache.avalon.framework.service.ServiceManager
| Modifier and Type | Class and Description |
|---|---|
private static class |
FortressServiceManager.Lookup |
| Modifier and Type | Field and Description |
|---|---|
private org.apache.avalon.fortress.Container |
m_container |
private org.apache.avalon.framework.service.ServiceManager |
m_parent |
private java.util.Map |
m_used |
| Constructor and Description |
|---|
FortressServiceManager(org.apache.avalon.fortress.Container container,
org.apache.avalon.framework.service.ServiceManager parent)
This constructor is for a ContainerComponentManager with a parent
ComponentLocator
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasService(java.lang.String role) |
java.lang.Object |
lookup(java.lang.String role) |
private FortressServiceManager.Lookup |
parseRole(java.lang.String role) |
void |
release(java.lang.Object component) |
private final org.apache.avalon.fortress.Container m_container
private final java.util.Map m_used
private final org.apache.avalon.framework.service.ServiceManager m_parent
public FortressServiceManager(org.apache.avalon.fortress.Container container,
org.apache.avalon.framework.service.ServiceManager parent)
throws java.lang.NullPointerException
container - the implparent - the parent service managerjava.lang.NullPointerException - if the supplied impl is nullpublic java.lang.Object lookup(java.lang.String role)
throws org.apache.avalon.framework.service.ServiceException
lookup in interface org.apache.avalon.framework.service.ServiceManagerorg.apache.avalon.framework.service.ServiceExceptionpublic boolean hasService(java.lang.String role)
hasService in interface org.apache.avalon.framework.service.ServiceManagerpublic void release(java.lang.Object component)
release in interface org.apache.avalon.framework.service.ServiceManagerprivate FortressServiceManager.Lookup parseRole(java.lang.String role)