Package ratpack.groovy.render
Class GroovyRendererSupport<T>
- java.lang.Object
-
- ratpack.core.render.RendererSupport<T>
-
- ratpack.groovy.render.GroovyRendererSupport<T>
-
- Type Parameters:
T
- The type of object this renderer renders
- All Implemented Interfaces:
Renderer<T>
public abstract class GroovyRendererSupport<T> extends RendererSupport<T>
A specialisation ofRendererSupport
that makes aGroovyContext
available.
-
-
Constructor Summary
Constructors Constructor Description GroovyRendererSupport()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
render(Context ctx, T object)
abstract void
render(GroovyContext context, T object)
Renders the given object to the context.-
Methods inherited from class ratpack.core.render.RendererSupport
getType
-
-
-
-
Method Detail
-
render
public final void render(Context ctx, T object) throws Exception
- Specified by:
render
in interfaceRenderer<T>
- Specified by:
render
in classRendererSupport<T>
- Parameters:
ctx
- The contextobject
- The object to render- Throws:
Exception
- the exception thrown byrender(GroovyContext, Object)
if any
-
render
public abstract void render(GroovyContext context, T object) throws Exception
Renders the given object to the context.- Parameters:
context
- The context to render toobject
- The object to render- Throws:
Exception
- If the object cannot be rendered for any reason- See Also:
Renderer.render(Context, Object)
-
-