org.apache.avalon.fortress.util
Class ContextManager.EAServiceManager
java.lang.Object
org.apache.avalon.framework.service.DefaultServiceManager
org.apache.avalon.fortress.util.ContextManager.EAServiceManager
- All Implemented Interfaces:
- ServiceManager
- Enclosing class:
- ContextManager
- private static final class ContextManager.EAServiceManager
- extends DefaultServiceManager
This is a compatibility thing for early adopters of Fortress so that they will use the correct ROLE for the CommandSink.
| Method Summary |
boolean |
hasService(java.lang.String role)
Check to see if a Object exists for a key. |
java.lang.Object |
lookup(java.lang.String role)
Retrieve Object by key from ServiceManager. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_ealogger
private final Logger m_ealogger
-
ContextManager.EAServiceManager
public ContextManager.EAServiceManager(ServiceManager parent,
Logger logger)
lookup
public java.lang.Object lookup(java.lang.String role)
throws ServiceException
- Description copied from class:
DefaultServiceManager
-
Retrieve
Object by key from ServiceManager.
-
- Specified by:
lookup in interface ServiceManager
- Overrides:
lookup in class DefaultServiceManager
-
- Parameters:
role - the key
- Returns:
- the
Object
- Throws:
ServiceException - if an error occurs
hasService
public boolean hasService(java.lang.String role)
- Description copied from class:
DefaultServiceManager
-
Check to see if a
Object exists for a key.
-
- Specified by:
hasService in interface ServiceManager
- Overrides:
hasService in class DefaultServiceManager
-
- Parameters:
role - a string identifying the key to check.
- Returns:
- True if the object exists, False if it does not.
Please see keelframework.org for information about new Keel releases.