Package ratpack.groovy.render
Class GroovyRendererSupport<T>
- java.lang.Object
-
- ratpack.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 ofRendererSupportthat makes aGroovyContextavailable.
-
-
Constructor Summary
Constructors Constructor Description GroovyRendererSupport()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidrender(GroovyContext context, T object)Renders the given object to the context.voidrender(Context ctx, T object)-
Methods inherited from class ratpack.render.RendererSupport
getType
-
-
-
-
Method Detail
-
render
public final void render(Context ctx, T object) throws java.lang.Exception
- Specified by:
renderin interfaceRenderer<T>- Specified by:
renderin classRendererSupport<T>- Parameters:
ctx- The contextobject- The object to render- Throws:
java.lang.Exception- the exception thrown byrender(GroovyContext, Object)if any
-
render
public abstract void render(GroovyContext context, T object) throws java.lang.Exception
Renders the given object to the context.- Parameters:
context- The context to render toobject- The object to render- Throws:
java.lang.Exception- If the object cannot be rendered for any reason- See Also:
Renderer.render(ratpack.handling.Context, Object)
-
-