Annotation Interface Constant


@Retention(RUNTIME) public @interface Constant
The Constant is an annotation for injected constant values. It is defined by a String value and a Class namespace. The default namespace is Object.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the value.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the namespace.
  • Element Details

    • value

      String value
      Returns the value.
      Returns:
      the value
    • namespace

      Class<?> namespace
      Returns the namespace. The default namespace is Object.
      Returns:
      the namespace
      Default:
      java.lang.Object.class