Package | Description |
---|---|
ratpack.render |
The renderer framework provides a pluggable mechanism for serializing objects to the response.
|
Modifier and Type | Class and Description |
---|---|
class |
RenderableDecoratorSupport<T>
A convenience base class for
RenderableDecorator implementations. |
Modifier and Type | Method and Description |
---|---|
static <T> RenderableDecorator<T> |
RenderableDecorator.of(Class<T> type,
BiFunction<? super Context,? super T,? extends T> impl)
Creates a renderable decorator implementation for the given type that uses the function as decorator.
|
static <T> RenderableDecorator<T> |
RenderableDecorator.ofAsync(Class<T> type,
BiFunction<? super Context,? super T,? extends Promise<T>> impl)
Creates a renderable decorator implementation for the given type that uses the function as decorator.
|
Modifier and Type | Method and Description |
---|---|
static <T> TypeToken<RenderableDecorator<T>> |
RenderableDecorator.typeOf(Class<T> type)
Creates a type token for a decorator of objects of the given type.
|