Annotation Type ConditionalOnClass

    • Optional Element Summary

      Optional Elements 
      Modifier and TypeOptional ElementDescription
      String[]name
      The classes names that must be present.
      Class<?>[]value
      The classes that must be present.
    • Element Detail

      • value

        Class<?>[] value
        The classes that must be present. Since this annotation is parsed by loading class bytecode, it is safe to specify classes here that may ultimately not be on the classpath, only if this annotation is directly on the affected component and not if this annotation is used as a composed, meta-annotation. In order to use this annotation as a meta-annotation, only use the name() attribute.
        Returns:
        the classes that must be present
        Default:
        {}
      • name

        String[] name
        The classes names that must be present.
        Returns:
        the class names that must be present.
        Default:
        {}