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

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

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:
$Id: AspectRenderer.java 327168 2005-10-21 12:56:35Z cziegeler $

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()
           
 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
See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)

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
See Also:
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)

dispose

public void dispose()
Specified by:
dispose in interface Disposable
See Also:
Disposable.dispose()

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)


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