-
- All Known Implementing Classes:
BasicBundlers
public interface Bundlers
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static Bundlers
createBundlersInstance()
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.Collection<Bundler>
getBundlers()
Returns all of the preconfigured, requested, and manually configured bundlers loaded with this instance.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.Collection<BundlerParamInfo>
getStandardParameters()
A list of the "standard" parameters that bundlers should support or fall back to when their specific parameters are not used.void
loadBundler(Bundler bundler)
Loads a specific bundler into the set of bundlers.void
loadBundlersFromServices(ClassLoader cl)
Loads bundlers from the META-INF/services directly.void
loadDefaultBundlers()
Loads the bundlers common to the JDK.
-
-
-
Method Detail
-
createBundlersInstance
static Bundlers 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
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. After instantiating the bundlers instance it will load the default bundlers vialoadDefaultBundlers()
as well as requesting the services loader to load any other bundelrs vialoadBundlersFromServices(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
createBundlersInstance(ClassLoader)
andcreateBundlersInstance()
methods. NOTE: Because of the module system this method is now not used.
-
loadBundlersFromServices
void loadBundlersFromServices(ClassLoader cl)
Loads bundlers from the META-INF/services directly. This method is called from thecreateBundlersInstance(ClassLoader)
andcreateBundlersInstance()
methods.
-
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
-
-