org.apache.pluto.portalImpl.services.factorymanager
Class FactoryManager

java.lang.Object
  extended by org.apache.pluto.portalImpl.services.factorymanager.FactoryManager

public class FactoryManager
extends java.lang.Object

Manages the life-time of factories registered during container startup. A service has to derive from Factory and implement the init() and destroy() methods as appropriate.

See Also:
Factory

Field Summary
private static FactoryManagerService cService
           
 
Constructor Summary
FactoryManager()
           
 
Method Summary
static Factory getFactory(java.lang.Class theClass)
          Returns the service implementation for the given service class, or null if no such service is registered.
static FactoryManagerService getService()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cService

private static final FactoryManagerService cService
Constructor Detail

FactoryManager

public FactoryManager()
Method Detail

getFactory

public static Factory getFactory(java.lang.Class theClass)
Returns the service implementation for the given service class, or null if no such service is registered.

Parameters:
theClass - the service class
Returns:
the service implementation

getService

public static FactoryManagerService getService()