Package net.bytebuddy.dynamic.loading
Class PackageDefinitionStrategy.ManifestReading.SealBaseLocator.ForFixedValue
- java.lang.Object
-
- net.bytebuddy.dynamic.loading.PackageDefinitionStrategy.ManifestReading.SealBaseLocator.ForFixedValue
-
- All Implemented Interfaces:
PackageDefinitionStrategy.ManifestReading.SealBaseLocator
- Enclosing interface:
- PackageDefinitionStrategy.ManifestReading.SealBaseLocator
public static class PackageDefinitionStrategy.ManifestReading.SealBaseLocator.ForFixedValue extends Object implements PackageDefinitionStrategy.ManifestReading.SealBaseLocator
A seal base locator that seals all packages with a fixed URL.
-
-
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
-
-
Constructor Summary
Constructors Constructor Description ForFixedValue(URL sealBase)
Creates a new seal base locator for a fixed URL.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
URL
findSealBase(ClassLoader classLoader, String typeName)
Locates the URL that should be used for sealing a package.int
hashCode()
-
-
-
Constructor Detail
-
ForFixedValue
public ForFixedValue(URL sealBase)
Creates a new seal base locator for a fixed URL.- Parameters:
sealBase
- The seal base URL.
-
-
Method Detail
-
findSealBase
public URL findSealBase(ClassLoader classLoader, 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.
-
-