Class DefaultModuleDefinition

    • Field Detail

      • classPath

        protected final List<URI> classPath
      • mainAttributes

        protected final Attributes mainAttributes
        Main attributes section of the manifest. Always non-null.
    • Method Detail

      • parseAttributes

        protected void parseAttributes​(Attributes attr)
        Extensibility point to parse more information from Manifest attributes.
        Parameters:
        attr - Main attributes of the manifest. Always non-null.
      • getPublicInterfaces

        public String[] getPublicInterfaces()
        Returns the list of classes and packages that have been designated as public interfaces of this module.
        Specified by:
        getPublicInterfaces in interface ModuleDefinition
        Returns:
        the list of public packages or classes
      • getLocations

        public URI[] getLocations()
        Returns the list of URI locations forming the classpath for this module.
        Specified by:
        getLocations in interface ModuleDefinition
        Returns:
        the list of URI locations for this module
      • getManifest

        public Manifest getManifest()
        Returns the manifest file from the module's implementation jar file
        Specified by:
        getManifest in interface ModuleDefinition
        Returns:
        never null.