The @ZRenderer annotation#

Specifies the Renderer class to use for rendering a pojo to a String. This annotation also specifies the default exposed values.

package my.package;

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

In this case, when it comes to render the pojo, ztemplates will do the following:

  1. create or reuse an instance of the ZVelocityRenderer class.
  2. expose all properties annotated with @ZExpose to a Map<String, Object>.
  3. expose the default exposed values specified in its parameters.
  4. pass the map to the Renderer and let him compute the rendered String

See default exposed values for values exposed by ztemplates by default.

Neuen Anhang hinzuf�gen

Du bist nicht autorisiert, Anh�nge zu dieser Seite hochzuladen.
« Diese Seite (Version-) wurde zuletzt am 23-Sep-2008 09:16 von gerdziegler.de ge�ndert.