Class 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 for RenderableDecorator implementations.

    This base class provides an implementation for the getType() method based on the type parameter T.

    Like RendererSupport implementations, the value for type variable T must be a concrete type or a parameterized type with the ? wildcard for all variables due to runtime type erasure.

    • Constructor Detail

      • RenderableDecoratorSupport

        protected RenderableDecoratorSupport()
    • Method Detail

      • getType

        public Class<T> getType()
        The type of objects that this decorator decorates.
        Specified by:
        getType in interface RenderableDecorator<T>
        Returns:
        the type of objects that this decorator decorates