Package net.bytebuddy.dynamic.loading
Enum PackageDefinitionStrategy.ManifestReading.SealBaseLocator.NonSealing
- java.lang.Object
-
- java.lang.Enum<PackageDefinitionStrategy.ManifestReading.SealBaseLocator.NonSealing>
-
- net.bytebuddy.dynamic.loading.PackageDefinitionStrategy.ManifestReading.SealBaseLocator.NonSealing
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PackageDefinitionStrategy.ManifestReading.SealBaseLocator.NonSealing>
,PackageDefinitionStrategy.ManifestReading.SealBaseLocator
- Enclosing interface:
- PackageDefinitionStrategy.ManifestReading.SealBaseLocator
public static enum PackageDefinitionStrategy.ManifestReading.SealBaseLocator.NonSealing extends java.lang.Enum<PackageDefinitionStrategy.ManifestReading.SealBaseLocator.NonSealing> implements PackageDefinitionStrategy.ManifestReading.SealBaseLocator
A seal base locator that never seals a package.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.loading.PackageDefinitionStrategy.ManifestReading.SealBaseLocator
PackageDefinitionStrategy.ManifestReading.SealBaseLocator.ForFixedValue, PackageDefinitionStrategy.ManifestReading.SealBaseLocator.ForTypeResourceUrl, PackageDefinitionStrategy.ManifestReading.SealBaseLocator.NonSealing
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
NonSealing()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URL
findSealBase(java.lang.ClassLoader classLoader, java.lang.String typeName)
Locates the URL that should be used for sealing a package.static PackageDefinitionStrategy.ManifestReading.SealBaseLocator.NonSealing
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PackageDefinitionStrategy.ManifestReading.SealBaseLocator.NonSealing[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final PackageDefinitionStrategy.ManifestReading.SealBaseLocator.NonSealing INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static PackageDefinitionStrategy.ManifestReading.SealBaseLocator.NonSealing[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PackageDefinitionStrategy.ManifestReading.SealBaseLocator.NonSealing c : PackageDefinitionStrategy.ManifestReading.SealBaseLocator.NonSealing.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PackageDefinitionStrategy.ManifestReading.SealBaseLocator.NonSealing valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
findSealBase
public java.net.URL findSealBase(java.lang.ClassLoader classLoader, java.lang.String typeName)
Locates the URL that should be used for sealing a package.- Specified by:
findSealBase
in interfacePackageDefinitionStrategy.ManifestReading.SealBaseLocator
- Parameters:
classLoader
- The class loader loading the package.typeName
- The name of the type being loaded that triggered the package definition.- Returns:
- The URL that is used for sealing a package or
null
if the package should not be sealed.
-
-