Package net.bytebuddy.dynamic.loading
Interface PackageDefinitionStrategy.ManifestReading.SealBaseLocator
-
- All Known Implementing Classes:
PackageDefinitionStrategy.ManifestReading.SealBaseLocator.ForFixedValue,PackageDefinitionStrategy.ManifestReading.SealBaseLocator.ForTypeResourceUrl,PackageDefinitionStrategy.ManifestReading.SealBaseLocator.NonSealing
- Enclosing class:
- PackageDefinitionStrategy.ManifestReading
public static interface PackageDefinitionStrategy.ManifestReading.SealBaseLocatorA locator for a seal base URL.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPackageDefinitionStrategy.ManifestReading.SealBaseLocator.ForFixedValueA seal base locator that seals all packages with a fixed URL.static classPackageDefinitionStrategy.ManifestReading.SealBaseLocator.ForTypeResourceUrlA seal base locator that imitates the behavior of aURLClassLoader, i.e.static classPackageDefinitionStrategy.ManifestReading.SealBaseLocator.NonSealingA seal base locator that never seals a package.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.net.URLfindSealBase(java.lang.ClassLoader classLoader, java.lang.String typeName)Locates the URL that should be used for sealing a package.
-
-
-
Method Detail
-
findSealBase
@MaybeNull java.net.URL findSealBase(java.lang.ClassLoader classLoader, java.lang.String typeName)
Locates the URL that should be used for sealing a package.- 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
nullif the package should not be sealed.
-
-