Class PackageDefinitionStrategy.ManifestReading.SealBaseLocator.ForFixedValue

    • 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 interface PackageDefinitionStrategy.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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object