Module jdk.packager

Interface Bundlers

  • All Known Implementing Classes:
    BasicBundlers


    public interface Bundlers
    • Method Detail

      • createBundlersInstance

        static Bundlers createBundlersInstance​()
        This convenience method will call createBundlersInstance(ClassLoader) with the classloader that this Bundlers is loaded from.
        Returns:
        an instance of Bundlers loaded and configured from the current ClassLoader.
      • createBundlersInstance

        static Bundlers createBundlersInstance​(ClassLoader servicesClassLoader)
        This convenience method will automatically load a Bundlers instance from either META-INF/services or the default BasicBundlers if none are found in the services meta-inf. After instantiating the bundlers instance it will load the default bundlers via loadDefaultBundlers() as well as requesting the services loader to load any other bundelrs via loadBundlersFromServices(ClassLoader).
        Parameters:
        servicesClassLoader - the classloader to search for META-INF/service registered bundlers
        Returns:
        an instance of Bundlers loaded and configured from the specified ClassLoader
      • getBundlers

        Collection<Bundler> getBundlers​()
        Returns all of the preconfigured, requested, and manually configured bundlers loaded with this instance.
        Returns:
        a read-only collection of the requested bundlers
      • getBundlers

        Collection<Bundler> getBundlers​(String type)
        Returns all of the preconfigured, requested, and manually configured bundlers loaded with this instance that are of a specific BundleType, such as disk images, installers, or remote installers.
        Returns:
        a read-only collection of the requested bundlers
      • getStandardParameters

        Collection<BundlerParamInfo> getStandardParameters​()
        A list of the "standard" parameters that bundlers should support or fall back to when their specific parameters are not used.
        Returns:
        an unmodifiable collection of the standard parameters.
      • loadDefaultBundlers

        void loadDefaultBundlers​()
        Loads the bundlers common to the JDK. A typical implementation would load:
        • Windows file image
        • Mac .app
        • Linux file image
        • Windows MSI
        • Windows EXE
        • Mac DMG
        • Mac PKG
        • Linux DEB
        • Linux RPM
        This method is called from the createBundlersInstance(ClassLoader) and createBundlersInstance() methods. NOTE: Because of the module system this method is now not used.
      • loadBundler

        void loadBundler​(Bundler bundler)
        Loads a specific bundler into the set of bundlers. Useful for a manually configured bundler.
        Parameters:
        bundler - the specific bundler to add