org.apache.cocoon.portal.layout.renderer.impl
Class AspectRenderer

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.portal.layout.renderer.impl.AspectRenderer
All Implemented Interfaces:
Disposable, Component, Configurable, Contextualizable, LogEnabled, Serviceable, ThreadSafe, Renderer

public class AspectRenderer
extends AbstractLogEnabled
implements Renderer, Serviceable, Configurable, Disposable, ThreadSafe, Contextualizable

Container for chain of aspect renderers. All aspect renderers are applied in order of appearance.

Configuration

aspectsList of aspect renderers to apply. See RendererAspectChain ConfigurationEmptyConfiguration

Version:
CVS $Id: AspectRenderer.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler, Volker Schmitt

Field Summary
protected  ServiceSelector aspectSelector
           
protected  RendererAspectChain chain
           
protected  Context context
           
protected  ServiceManager manager
           
 
Fields inherited from interface org.apache.cocoon.portal.layout.renderer.Renderer
ROLE
 
Constructor Summary
AspectRenderer()
           
 
Method Summary
 void configure(Configuration conf)
           
 void contextualize(Context context)
           
 void dispose()
           
 Iterator getAspectDescriptions()
          Return the aspects required for this renderer
 void service(ServiceManager manager)
           
 void toSAX(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

chain

protected RendererAspectChain chain

aspectSelector

protected ServiceSelector aspectSelector

context

protected Context context
Constructor Detail

AspectRenderer

public AspectRenderer()
Method Detail

service

public void service(ServiceManager manager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException

toSAX

public void toSAX(Layout layout,
                  PortalService service,
                  ContentHandler handler)
           throws SAXException
Stream out raw layout

Specified by:
toSAX in interface Renderer
Throws:
SAXException

configure

public void configure(Configuration conf)
               throws ConfigurationException
Specified by:
configure in interface Configurable
Throws:
ConfigurationException

dispose

public void dispose()
Specified by:
dispose in interface Disposable

getAspectDescriptions

public Iterator getAspectDescriptions()
Return the aspects required for this renderer

Specified by:
getAspectDescriptions in interface Renderer

contextualize

public void contextualize(Context context)
                   throws ContextException
Specified by:
contextualize in interface Contextualizable
Throws:
ContextException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.