Class JarModuleFinder

  • All Implemented Interfaces:
    ModuleFinder

    public final class JarModuleFinder
    extends java.lang.Object
    implements ModuleFinder
    A module finder which uses a JAR file as a module repository.
    • Field Detail

      • jarFile

        private final java.util.jar.JarFile jarFile
      • context

        private final java.security.AccessControlContext context
    • Constructor Detail

      • JarModuleFinder

        public JarModuleFinder​(ModuleIdentifier myIdentifier,
                               java.util.jar.JarFile jarFile)
        Construct a new instance.
        Parameters:
        myIdentifier - the identifier to use for the JAR itself
        jarFile - the JAR file to encapsulate