org.apache.cocoon.portal.impl
Class AbstractComponent

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.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 $

Field Summary
protected  Context context
          The application context
protected  ServiceManager manager
          The service manager.
protected  PortalService portalService
          The portal service.
 
Constructor Summary
AbstractComponent()
           
 
Method Summary
 void contextualize(Context context)
           
 void dispose()
           
 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

manager

protected ServiceManager manager
The service manager.


portalService

protected PortalService portalService
The portal service.


context

protected Context context
The application context

Constructor Detail

AbstractComponent

public AbstractComponent()
Method Detail

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.