org.apache.cocoon.portal.impl
Class AbstractComponent
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.portal.impl.AbstractComponent
- All Implemented Interfaces:
- Contextualizable, Disposable, Initializable, LogEnabled, Serviceable, ThreadSafe
- Direct Known Subclasses:
- AbstractCopletAdapter, AbstractProfileManager, DefaultCopletFactory, DefaultEventConverter, DefaultEventManager, PortalToolManager
- public class AbstractComponent
- extends AbstractLogEnabled
- implements Contextualizable, Serviceable, Disposable, ThreadSafe, Initializable
This class can be used as a base class for all portal related components.
It already implements some Avalon lifecycle interfaces and stores
the portal service in an instance variable (portalService
) and
the Avalon component context in another one.
If the sub class implements the Receiver
interface, the component is subscribed/unsubcribed to/from the EventManager
.
- Version:
- $Id: AbstractComponent.java 326104 2005-10-18 13:34:13Z cziegeler $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
manager
protected ServiceManager manager
- The service manager.
portalService
protected PortalService portalService
- The portal service.
context
protected Context context
- The application context
AbstractComponent
public AbstractComponent()
contextualize
public void contextualize(Context context)
throws ContextException
- Specified by:
contextualize
in interface Contextualizable
- Throws:
ContextException
- See Also:
Contextualizable.contextualize(org.apache.avalon.framework.context.Context)
service
public void service(ServiceManager manager)
throws ServiceException
- Specified by:
service
in interface Serviceable
- Throws:
ServiceException
- See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
dispose
public void dispose()
- Specified by:
dispose
in interface Disposable
- See Also:
Disposable.dispose()
initialize
public void initialize()
throws Exception
- Specified by:
initialize
in interface Initializable
- Throws:
Exception
- See Also:
Initializable.initialize()
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.