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 forRenderableDecoratorimplementations.This base class provides an implementation for the
getType()method based on the type parameterT.Like
RendererSupportimplementations, the value for type variableTmust 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 protectedRenderableDecoratorSupport()
-
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:
getTypein interfaceRenderableDecorator<T>- Returns:
- the type of objects that this decorator decorates
-
-