Keel 2.1RC2

org.apache.avalon.fortress.util
Class ContextManager.EAServiceManager

java.lang.Object
  extended byorg.apache.avalon.framework.service.DefaultServiceManager
      extended byorg.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.


Field Summary
private  Logger m_ealogger
           
 
Fields inherited from class org.apache.avalon.framework.service.DefaultServiceManager
 
Constructor Summary
ContextManager.EAServiceManager(ServiceManager parent, Logger logger)
           
 
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 org.apache.avalon.framework.service.DefaultServiceManager
checkWriteable, getObjectMap, getParent, makeReadOnly, put, release, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_ealogger

private final Logger m_ealogger
Constructor Detail

ContextManager.EAServiceManager

public ContextManager.EAServiceManager(ServiceManager parent,
                                       Logger logger)
Method Detail

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.

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.