public static enum ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm extends java.lang.Enum<ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm> implements ByteArrayClassLoader.PackageLookupStrategy
ByteArrayClassLoader.PackageLookupStrategy.CreationAction, ByteArrayClassLoader.PackageLookupStrategy.ForJava9CapableVm, ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Package |
apply(ByteArrayClassLoader classLoader,
java.lang.String name)
Returns a package for a given byte array class loader and a name.
|
static ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm INSTANCE
public static ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm[] values()
for (ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm c : ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm.values()) System.out.println(c);
public static ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.Package apply(ByteArrayClassLoader classLoader, java.lang.String name)
apply
in interface ByteArrayClassLoader.PackageLookupStrategy
classLoader
- The class loader to locate a package for.name
- The name of the package.null
if no such package exists.