Class PackageDefinitionStrategy.ManifestReading.SealBaseLocator.ForTypeResourceUrl

    • Field Detail

      • EXCLUDE_INITIAL_SLASH

        private static final int EXCLUDE_INITIAL_SLASH
        An index to indicate to a String manipulation that the initial slash should be excluded.
        See Also:
        Constant Field Values
      • CLASS_FILE_EXTENSION

        private static final java.lang.String CLASS_FILE_EXTENSION
        The file extension for a class file.
        See Also:
        Constant Field Values
      • JAR_FILE

        private static final java.lang.String JAR_FILE
        The protocol name of a jar file.
        See Also:
        Constant Field Values
      • FILE_SYSTEM

        private static final java.lang.String FILE_SYSTEM
        The protocol name of a file system link.
        See Also:
        Constant Field Values
      • RUNTIME_IMAGE

        private static final java.lang.String RUNTIME_IMAGE
        The protocol name of a Java 9 runtime image.
        See Also:
        Constant Field Values
    • Method Detail

      • 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 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.