org.tigris.scarab.services
Class ServiceManager

java.lang.Object
  extended byorg.tigris.scarab.services.ServiceManager

public class ServiceManager
extends java.lang.Object

Common access class for component services (i.e. yaafi).

Author:
Hussayn Dabbous

Field Summary
(package private) static ServiceManager instance
           
 
Method Summary
static ServiceManager getInstance()
          Return the one and only Servicemanager instance
static org.apache.turbine.services.yaaficomponent.YaafiComponentService getService()
           
 java.lang.Object lookup(java.lang.Class serviceClass)
          Lookup a service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

static ServiceManager instance
Method Detail

getInstance

public static ServiceManager getInstance()
Return the one and only Servicemanager instance

Returns:

lookup

public java.lang.Object lookup(java.lang.Class serviceClass)
Lookup a service. If the service exists, but is not initialized yet, perform the initialization before returnning the service. The method is synchronized in order to avoid duplicate initializations due to possible parallel calls from multiple threads.

Parameters:
serviceClass -
Returns:
Throws:
ScarabException

getService

public static org.apache.turbine.services.yaaficomponent.YaafiComponentService getService()


Copyright © 2000-2004 Tigris.org. All Rights Reserved.