org.apache.tiles.request.render
Class PublisherRenderer
java.lang.Object
org.apache.tiles.request.render.PublisherRenderer
- All Implemented Interfaces:
- Renderer
public class PublisherRenderer
- extends Object
- implements Renderer
Provides a Publisher-Subscriber implementation around the provided renderer to delegate to.
- Version:
- $Rev: 1035784 $ $Date: 2010-11-16 20:24:12 +0000 (Tue, 16 Nov 2010) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PublisherRenderer
public PublisherRenderer(Renderer renderer)
render
public void render(String path,
Request request)
throws IOException
- Description copied from interface:
Renderer
- Renders a path.
- Specified by:
render
in interface Renderer
- Parameters:
path
- The path to render.request
- The Tiles request context.
- Throws:
IOException
- If something goes wrong during rendition.
isRenderable
public boolean isRenderable(String path,
Request request)
- Description copied from interface:
Renderer
- Checks if this renderer can render a path. Note that this does not mean
it is the best renderer available, but checks only its capability.
- Specified by:
isRenderable
in interface Renderer
- Parameters:
path
- The path to be rendered.request
- The request context.
- Returns:
true
if this renderer can render the attribute.
addListener
public void addListener(PublisherRenderer.RendererListener listener)
Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.