Package net.bytebuddy.dynamic.loading
Enum Class 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:
Serializable
,Comparable<PackageDefinitionStrategy.ManifestReading.SealBaseLocator.NonSealing>
,Constable
,PackageDefinitionStrategy.ManifestReading.SealBaseLocator
- Enclosing interface:
PackageDefinitionStrategy.ManifestReading.SealBaseLocator
public static enum PackageDefinitionStrategy.ManifestReading.SealBaseLocator.NonSealing
extends 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 class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindSealBase
(ClassLoader classLoader, String typeName) Locates the URL that should be used for sealing a package.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
NonSealing
private NonSealing()
-
-
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
public static PackageDefinitionStrategy.ManifestReading.SealBaseLocator.NonSealing 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 nameNullPointerException
- if the argument is null
-
findSealBase
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.
-