Module nbbrd.design
Package nbbrd.design

Annotation Type StaticFactoryMethod


@Target(METHOD) @Retention(SOURCE) @Documented public @interface StaticFactoryMethod
Force use of static factory methods instead of constructors.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The interface (or class) to create.
    This value is optional and will use the enclosed type if absent.
  • Element Details

    • value

      Class<?> value
      The interface (or class) to create.
      This value is optional and will use the enclosed type if absent.
      Returns:
      a non-null type
      Default:
      java.lang.Void.class