Interface Bundlers

All Known Implementing Classes:
BasicBundlers

public interface Bundlers
Bundlers The interface implemented by BasicBundlers
  • Method Details

    • 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
      invalid reference
      #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
    • loadBundlersFromServices

      void loadBundlersFromServices(ClassLoader cl)
      Loads bundlers from the META-INF/services directly. This method is called from the createBundlersInstance(ClassLoader) and createBundlersInstance() methods.