Annotation Type Default


  • @Retention(RUNTIME)
    @Target(METHOD)
    public @interface Default
    Defines the default value for a configuration item (leaf). Default values are loaded first and can be overridden by any other configuration source (so they have lowest preference).
     interface Fuu {
         \@Default("42") int theAnswer();
     }
     
    See Also:
    DefaultSource
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String value  
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean isNull  
    • Element Detail

      • value

        java.lang.String value
      • isNull

        boolean isNull
        Returns:
        true if the value() is actually null
        Default:
        false