- All Implemented Interfaces:
Serializable
,Comparable<MetadataDiscovery.Mode>
,Constable
- Enclosing interface:
MetadataDiscovery
Modes of discovery.
Can be controlled through system property "io.helidon.metadata.mode".
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAutomatic mode, works as follows: IfMetadataConstants.MANIFEST_FILE
is found, and it is considered merged (more than one line withMetadataConstants.MANIFEST_ID_LINE
exists), it is used to discover metadata files. If there is one or lessMETA-INF/MANIFEST.MF
files on classpath, classpath discovery is used Classpath discovery using all manifests is usedDo not do any discovery.Uses resources discovered from classpath, expecting duplicate resources.Discovers metadata files by scanning the file entries defined by thejava.class.path
andjdk.module.path
system properties. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetadataDiscovery.Mode
Returns the enum constant of this class with the specified name.static MetadataDiscovery.Mode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO
Automatic mode, works as follows:- If
MetadataConstants.MANIFEST_FILE
is found, and it is considered merged (more than one line withMetadataConstants.MANIFEST_ID_LINE
exists), it is used to discover metadata files. - If there is one or less
META-INF/MANIFEST.MF
files on classpath, classpath discovery is used - Classpath discovery using all manifests is used
- If
-
RESOURCES
Uses resources discovered from classpath, expecting duplicate resources.NOTE: This approach will not work with unmerged manifests.
-
SCANNING
Discovers metadata files by scanning the file entries defined by thejava.class.path
andjdk.module.path
system properties.NOTE: this adds startup performance overhead, and will not work with unusual classloaders (such as GraalVM native-image).
-
NONE
Do not do any discovery.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-