Interface Bundlers
- All Known Implementing Classes:
BasicBundlers
public interface Bundlers
Bundlers
The interface implemented by BasicBundlers
-
Method Summary
Modifier and TypeMethodDescriptionstatic Bundlers
This convenience method will callcreateBundlersInstance(ClassLoader)
with the classloader that this Bundlers is loaded from.static Bundlers
createBundlersInstance
(ClassLoader servicesClassLoader) This convenience method will automatically load a Bundlers instance from either META-INF/services or the defaultBasicBundlers
if none are found in the services meta-inf.Returns all of the preconfigured, requested, and manually configured bundlers loaded with this instance.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.void
Loads bundlers from the META-INF/services directly.
-
Method Details
-
createBundlersInstance
This convenience method will callcreateBundlersInstance(ClassLoader)
with the classloader that this Bundlers is loaded from.- Returns:
- an instance of Bundlers loaded and configured from the current ClassLoader.
-
createBundlersInstance
This convenience method will automatically load a Bundlers instance from either META-INF/services or the defaultBasicBundlers
if none are found in the services meta-inf. After instantiating the bundlers instance it will load the default bundlers viainvalid reference
#loadDefaultBundlers()
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
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
Loads bundlers from the META-INF/services directly. This method is called from thecreateBundlersInstance(ClassLoader)
andcreateBundlersInstance()
methods.
-