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

java.lang.Object
  extended by org.apache.pluto.portalImpl.services.Service
      extended by org.apache.pluto.portalImpl.services.factorymanager.FactoryManagerService
All Implemented Interfaces:
org.apache.pluto.services.ContainerService, org.apache.pluto.services.factory.FactoryManagerService
Direct Known Subclasses:
FactoryManagerServiceImpl

public abstract class FactoryManagerService
extends Service
implements org.apache.pluto.services.factory.FactoryManagerService

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

Constructor Summary
FactoryManagerService()
           
 
Method Summary
abstract  org.apache.pluto.factory.Factory getFactory(java.lang.Class theClass)
          Returns the service implementation for the given service class, or null if no such service is registered.
 
Methods inherited from class org.apache.pluto.portalImpl.services.Service
destroy, destroy, init, init, init, postInit, postInit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryManagerService

public FactoryManagerService()
Method Detail

getFactory

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

Specified by:
getFactory in interface org.apache.pluto.services.factory.FactoryManagerService
Parameters:
theClass - the service class
Returns:
the service implementation


Copyright © 2003-2010 . All Rights Reserved.