org.apache.cocoon.portal.layout.renderer.aspect.impl
Class AbstractAspect

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.portal.layout.renderer.aspect.impl.AbstractAspect
All Implemented Interfaces:
LogEnabled, RendererAspect, Serviceable, ThreadSafe
Direct Known Subclasses:
AbstractActionAspect, AbstractCIncludeAspect, AbstractCompositeAspect, AddToBasketAspect, DefaultCopletAspect, HistoryAspect, ParameterAspect, PortletWindowAspect, RemovableAspect, SizingAspect, WindowAspect, WSRPPortletWindowAspect, XSLTAspect

public abstract class AbstractAspect
extends AbstractLogEnabled
implements Serviceable, ThreadSafe, RendererAspect

Base class for renderer aspects.

Version:
$Id: AbstractAspect.java 327168 2005-10-21 12:56:35Z cziegeler $

Field Summary
protected  ServiceManager manager
           
 
Fields inherited from interface org.apache.cocoon.portal.layout.renderer.aspect.RendererAspect
ROLE
 
Constructor Summary
AbstractAspect()
           
 
Method Summary
 Object prepareConfiguration(Parameters configuration)
          Compile the configuration.
 void service(ServiceManager manager)
           
 void toSAX(RendererAspectContext context, Layout layout, PortalService service, ContentHandler handler)
          Stream out raw layout
 
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
Constructor Detail

AbstractAspect

public AbstractAspect()
Method Detail

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)

toSAX

public void toSAX(RendererAspectContext context,
                  Layout layout,
                  PortalService service,
                  ContentHandler handler)
           throws SAXException
Description copied from interface: RendererAspect
Stream out raw layout

Specified by:
toSAX in interface RendererAspect
Throws:
SAXException
See Also:
RendererAspect.toSAX(org.apache.cocoon.portal.layout.renderer.aspect.RendererAspectContext, org.apache.cocoon.portal.layout.Layout, org.apache.cocoon.portal.PortalService, org.xml.sax.ContentHandler)

prepareConfiguration

public Object prepareConfiguration(Parameters configuration)
                            throws ParameterException
Description copied from interface: RendererAspect
Compile the configuration. A renderer aspect can "compile" the configuration in order to increase performance. If the renderer does not want to compile it should simply return the configuration. The "compiled" configuration is available during streaming via the context object. This method can also be used for validating the configuration.

Specified by:
prepareConfiguration in interface RendererAspect
Throws:
ParameterException
See Also:
RendererAspect.prepareConfiguration(org.apache.avalon.framework.parameters.Parameters)


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.