Annotation Interface Option.DefaultMethod

Enclosing class:
Option

@Target(METHOD) @Inherited @Retention(CLASS) public static @interface Option.DefaultMethod
A default value created from a method for a prototype option.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Static method without parameters that provides the type of the property, declared on type().
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Type to invoke the method on, defaults to the type of the property.
  • Element Details

    • type

      Class<?> type
      Type to invoke the method on, defaults to the type of the property.
      Returns:
      type that contains the static default method to use
      Default:
      io.helidon.builder.api.Option.DefaultMethod.class
    • value

      String value
      Static method without parameters that provides the type of the property, declared on type(). The method is expected to return a single value, List of values, or a Set of values for all types except for Map, where the default value should return a Map.
      Returns:
      name of a static method without parameters to use