Inhaltsverzeichnis

Renderer#

Renderers are objects responsible for rendering a object to a String. They implement the following interface:


public interface ZIRenderer extends Serializable
{
  public String render(Class exposedObjectClass, Map<String, Object> exposedValues) throws Exception;
}

Use it like this:


@ZRenderer(ZVelocityRenderer.class)
public class MyRenderPojo
{
  
}

They usually use the annotations on the exposedObjectClass and the classname to find a template file and merge the exposedValues into them to create a String.

But they are free to implement the transformation as they wish.

The following renderers are provided with ztemplates:

It is easy to write your own renderer.

The renderer class is specified by the @ZRenderer annotation on the render-pojo class.

Neuen Anhang hinzuf�gen

Du bist nicht autorisiert, Anh�nge zu dieser Seite hochzuladen.
« Diese Seite (Version-) wurde zuletzt am 22-Dez-2013 13:18 von gerdziegler.de ge�ndert.