Annotation Type JNDIProperty


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface JNDIProperty
    This annotation injects a property from a JNDI context in the annotated field.
    Author:
    Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String value
      The object name in the JNDI context.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String defaultValue
      The default value to set in case the key does not exist or cannot be loaded.
      boolean failFast
      Flag to fail the configuration process if the key is absent
      int order
      Injection order regarding other annotations.
    • Element Detail

      • value

        String value
        The object name in the JNDI context.
        Returns:
        The object name in the JNDI context
      • defaultValue

        String defaultValue
        The default value to set in case the key does not exist or cannot be loaded.
        Returns:
        the default value to set
        Default:
        ""
      • failFast

        boolean failFast
        Flag to fail the configuration process if the key is absent
        Returns:
        true if the configuration process should fail fast if the key is absent
        Default:
        false
      • order

        int order
        Injection order regarding other annotations.
        Returns:
        injection order regarding other annotations
        Default:
        0