Keel 2.1RC2

org.keel.core.container
Class KeelServiceManager

java.lang.Object
  extended byorg.apache.avalon.fortress.impl.lookup.FortressServiceManager
      extended byorg.keel.core.container.KeelServiceManager
All Implemented Interfaces:
ServiceManager

public class KeelServiceManager
extends FortressServiceManager

Version:
$Revision: 1.1 $ $Date: 2003/12/30 01:29:31 $
Author:
Santanu Dutt, Shash Chatterjee Created on Jun 8, 2003

Nested Class Summary
 
Nested classes inherited from class org.apache.avalon.fortress.impl.lookup.FortressServiceManager
 
Field Summary
 
Fields inherited from class org.apache.avalon.fortress.impl.lookup.FortressServiceManager
 
Constructor Summary
KeelServiceManager(Container container, ServiceManager parent)
           
 
Method Summary
 java.lang.Object lookup(java.lang.String role)
          The logic for obtaining a service from a ServiceManager.
 java.lang.Object lookup(java.lang.String role, Context c)
          The logic for obtaining a service from a ServiceManager.
 
Methods inherited from class org.apache.avalon.fortress.impl.lookup.FortressServiceManager
hasService, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeelServiceManager

public KeelServiceManager(Container container,
                          ServiceManager parent)
Method Detail

lookup

public java.lang.Object lookup(java.lang.String role)
                        throws ServiceException
The logic for obtaining a service from a ServiceManager. First we try to get it from this ServiceManager, then we try to get it from the parent manager. If it exists, we will lastly try the JNDI context.

Specified by:
lookup in interface ServiceManager
Overrides:
lookup in class FortressServiceManager
Throws:
ServiceException

lookup

public java.lang.Object lookup(java.lang.String role,
                               Context c)
                        throws ServiceException
The logic for obtaining a service from a ServiceManager. First we try to get it from this ServiceManager, then we try to get it from the parent manager. If it exists, we will lastly try the JNDI context.

Throws:
ServiceException

Keel 2.1RC2

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