|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.portal.pluto.services.factory.FactoryManagerServiceImpl
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.
Factory| Field Summary | |
protected Context |
context
The avalon context |
protected List |
factoryList
All factories. |
protected Map |
factoryMap
All factories mapped by factory class name. |
protected ServiceManager |
manager
The service manager |
protected ServletConfig |
servletConfig
The servlet configuration |
| Constructor Summary | |
FactoryManagerServiceImpl()
|
|
| Method Summary | |
void |
contextualize(Context context)
|
void |
dispose()
|
org.apache.pluto.factory.Factory |
getFactory(Class theClass)
Returns the service implementation for the given service class, or null if no such service is registered. |
void |
initialize()
|
void |
service(ServiceManager manager)
|
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ServletConfig servletConfig
protected Context context
protected ServiceManager manager
protected Map factoryMap
protected List factoryList
| Constructor Detail |
public FactoryManagerServiceImpl()
| Method Detail |
public void contextualize(Context context)
throws ContextException
contextualize in interface ContextualizableContextExceptionContextualizable.contextualize(org.apache.avalon.framework.context.Context)
public void service(ServiceManager manager)
throws ServiceException
service in interface ServiceableServiceExceptionServiceable.service(org.apache.avalon.framework.service.ServiceManager)
public void initialize()
throws Exception
initialize in interface InitializableExceptionInitializable.initialize()public void dispose()
dispose in interface DisposableDisposable.dispose()public org.apache.pluto.factory.Factory getFactory(Class theClass)
null if no such service is registered.
getFactory in interface org.apache.pluto.services.factory.FactoryManagerServicetheClass - the service class
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||