Enum Class MetadataDiscovery.Mode

java.lang.Object
java.lang.Enum<MetadataDiscovery.Mode>
io.helidon.metadata.MetadataDiscovery.Mode
All Implemented Interfaces:
Serializable, Comparable<MetadataDiscovery.Mode>, Constable
Enclosing interface:
MetadataDiscovery

public static enum MetadataDiscovery.Mode extends Enum<MetadataDiscovery.Mode>
Modes of discovery. Can be controlled through system property "io.helidon.metadata.mode".
  • Enum Constant Details

    • AUTO

      public static final MetadataDiscovery.Mode AUTO
      Automatic mode, works as follows:
    • RESOURCES

      public static final MetadataDiscovery.Mode RESOURCES
      Uses resources discovered from classpath, expecting duplicate resources.

      NOTE: This approach will not work with unmerged manifests.

    • SCANNING

      public static final MetadataDiscovery.Mode SCANNING
      Discovers metadata files by scanning the file entries defined by the java.class.path and jdk.module.path system properties.

      NOTE: this adds startup performance overhead, and will not work with unusual classloaders (such as GraalVM native-image).

    • NONE

      public static final MetadataDiscovery.Mode NONE
      Do not do any discovery.
  • Method Details

    • values

      public static MetadataDiscovery.Mode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MetadataDiscovery.Mode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null