Module nbbrd.design
Package nbbrd.design

Annotation Type DecoratorPattern


@Target(TYPE) @Retention(SOURCE) @Documented public @interface DecoratorPattern
In object-oriented programming, the decorator pattern is a design pattern that allows behavior to be added to an individual object, dynamically, without affecting the behavior of other instances of the same class.
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The interface (or class) to decorate.
    This value is optional if the decorator implements/extends exactly one interface/class.
  • Element Details

    • value

      Class<?> value
      The interface (or class) to decorate.
      This value is optional if the decorator implements/extends exactly one interface/class.
      Returns:
      a non-null type
      Default:
      java.lang.Void.class