Annotation Type ConditionalOnJndi


@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented @Conditional(org.springframework.boot.autoconfigure.condition.OnJndiCondition.class) public @interface ConditionalOnJndi
@Conditional that matches based on the availability of a JNDI InitialContext and the ability to lookup specific locations.
Since:
1.2.0
Author:
Phillip Webb
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    JNDI Locations, one of which must exist.
  • Element Details

    • value

      String[] value
      JNDI Locations, one of which must exist. If no locations are specific the condition matches solely based on the presence of an InitialContext.
      Returns:
      the JNDI locations
      Default:
      {}