Package ratpack.core.render
Class RenderableDecoratorSupport<T>
- java.lang.Object
-
- ratpack.core.render.RenderableDecoratorSupport<T>
-
- Type Parameters:
T
- the type of object-to-render that this decorator decorates
- All Implemented Interfaces:
RenderableDecorator<T>
public abstract class RenderableDecoratorSupport<T> extends Object implements RenderableDecorator<T>
A convenience base class forRenderableDecorator
implementations.This base class provides an implementation for the
getType()
method based on the type parameterT
.Like
RendererSupport
implementations, the value for type variableT
must be a concrete type or a parameterized type with the?
wildcard for all variables due to runtime type erasure.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RenderableDecoratorSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<T>
getType()
The type of objects that this decorator decorates.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ratpack.core.render.RenderableDecorator
decorate, register
-
-
-
-
Method Detail
-
getType
public Class<T> getType()
The type of objects that this decorator decorates.- Specified by:
getType
in interfaceRenderableDecorator<T>
- Returns:
- the type of objects that this decorator decorates
-
-