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

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.portal.layout.renderer.impl.AbstractRenderer
All Implemented Interfaces:
Disposable, Component, LogEnabled, Serviceable, ThreadSafe, Renderer
Direct Known Subclasses:
DefaultLinkRenderer

public abstract class AbstractRenderer
extends AbstractLogEnabled
implements Renderer, Serviceable, Disposable, ThreadSafe

Base class for all renderers.

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

Field Summary
protected  ServiceManager manager
           
protected  ServiceSelector rendererSelector
           
 
Fields inherited from interface org.apache.cocoon.portal.layout.renderer.Renderer
ROLE
 
Constructor Summary
AbstractRenderer()
           
 
Method Summary
 void dispose()
           
 Iterator getAspectDescriptions()
          Return the aspects required for this renderer
 String getStylesheetURI(Layout layout)
           
protected abstract  void process(Layout layout, PortalService service, ContentHandler handler)
           
protected  void processLayout(Layout layout, PortalService service, ContentHandler handler)
          Process a Layout
 void service(ServiceManager manager)
           
 void toSAX(Layout layout, PortalService service, ContentHandler handler)
          Stream out raw layout
 boolean useStylesheet()
           
 
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

rendererSelector

protected ServiceSelector rendererSelector

manager

protected ServiceManager manager
Constructor Detail

AbstractRenderer

public AbstractRenderer()
Method Detail

service

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

getStylesheetURI

public String getStylesheetURI(Layout layout)

useStylesheet

public boolean useStylesheet()

dispose

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

toSAX

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

Specified by:
toSAX in interface Renderer
Throws:
SAXException

processLayout

protected void processLayout(Layout layout,
                             PortalService service,
                             ContentHandler handler)
                      throws SAXException
Process a Layout

Throws:
SAXException

process

protected abstract void process(Layout layout,
                                PortalService service,
                                ContentHandler handler)
                         throws SAXException
Throws:
SAXException

getAspectDescriptions

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

Specified by:
getAspectDescriptions in interface Renderer


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