Interface Decorator<T>

  • Type Parameters:
    T - the decorator bean class
    All Superinterfaces:
    Bean<T>, BeanAttributes<T>, Contextual<T>

    public interface Decorator<T>
    extends Bean<T>

    Represents an enabled decorator.

    Since CDI 2.0, an implementation of this interface may implement Prioritized in order to enable the decorator with given priority value for entire application.

    CDI Lite implementations are not required to provide support for decorators.

    Author:
    Gavin King, Pete Muir