Annotation Interface Option.Access

Enclosing class:
Option

@Target(METHOD) @Inherited @Retention(CLASS) public static @interface Option.Access
Customize access modifier for builder methods. If undefined on a method, the builder method will be public. This changes the modifier of the builder methods, as getters are always public (as inherited from the blueprint).

Useful modifiers:

  • empty - (package private) the builder method is to be used only from configuration, custom builder decorator, or other types in the same package
  • private - the builder method is to be used only from configuration
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Custom access modifier to use.
  • Element Details

    • value

      String value
      Custom access modifier to use.
      Returns:
      modifier to use