Annotation Interface RegistryProperties


@Retention(RUNTIME) @Target({METHOD,FIELD,PARAMETER}) public @interface RegistryProperties
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The prefixes of keys of configuration properties that should be included.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    If a configuration property (excluding the prefix) key is found, but has no value, the default value from this array is used.
    Keys of configuration properties (excluding the prefix) that should be ignored.
  • Element Details

    • prefixes

      String[] prefixes
      The prefixes of keys of configuration properties that should be included. Keys with a later prefix in the array override the earlier ones.
    • defaults

      String[] defaults
      If a configuration property (excluding the prefix) key is found, but has no value, the default value from this array is used. This can be used to set empty string values for properties that require it. Each entry must be of the form "key-prefix=value".
      Default:
      {}
    • excluded

      String[] excluded
      Keys of configuration properties (excluding the prefix) that should be ignored. This is useful, for example, if we have defined standard configuration property in addition to a prefix-based set, and we don't want it to be included in the resulting Properties object.
      Default:
      {}