Class MinimalBundleProvisioner
- java.lang.Object
-
- com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner
-
- com.sun.enterprise.glassfish.bootstrap.osgi.MinimalBundleProvisioner
-
public class MinimalBundleProvisioner extends BundleProvisioner
This is a specializedBundleProvisioner
that installs only a minimum set of of bundles. It derives the set of bundles to be included from the list of bundles to be started and all fragment bundles available in the installation locations.- Author:
- [email protected]
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner
BundleProvisioner.DefaultCustomizer
-
-
Constructor Summary
Constructors Constructor Description MinimalBundleProvisioner(org.osgi.framework.BundleContext bundleContext, Properties config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.sun.enterprise.glassfish.bootstrap.osgi.MinimalBundleProvisioner.MinimalCustomizer
getCustomizer()
boolean
hasAnyThingChanged()
List<Long>
installBundles()
This method goes collects list of bundles that have been installed from the watched directory in previous run of the program, compares them with the current set of jar files, uninstalls old bundles, updates modified bundles, installs new bundles.void
refresh()
Refresh packagesvoid
startBundles()
Go through the list of auto start bundles and start them.-
Methods inherited from class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner
getBundleContext, getNoOfInstalledBundles, getNoOfUninstalledBundles, getNoOfUpdatedBundles, isSystemBundleUpdationRequired, main, setBundleContext, setSystemBundleUpdationRequired, uninstall
-
-
-
-
Constructor Detail
-
MinimalBundleProvisioner
public MinimalBundleProvisioner(org.osgi.framework.BundleContext bundleContext, Properties config)
-
-
Method Detail
-
installBundles
public List<Long> installBundles()
Description copied from class:BundleProvisioner
This method goes collects list of bundles that have been installed from the watched directory in previous run of the program, compares them with the current set of jar files, uninstalls old bundles, updates modified bundles, installs new bundles. It returns list of bundle ids provisioned by this provisoner.- Overrides:
installBundles
in classBundleProvisioner
-
startBundles
public void startBundles()
Description copied from class:BundleProvisioner
Go through the list of auto start bundles and start them.- Overrides:
startBundles
in classBundleProvisioner
-
hasAnyThingChanged
public boolean hasAnyThingChanged()
- Overrides:
hasAnyThingChanged
in classBundleProvisioner
- Returns:
- true if anything changed since last time framework was initialized
-
refresh
public void refresh()
Description copied from class:BundleProvisioner
Refresh packages- Overrides:
refresh
in classBundleProvisioner
-
getCustomizer
public com.sun.enterprise.glassfish.bootstrap.osgi.MinimalBundleProvisioner.MinimalCustomizer getCustomizer()
- Overrides:
getCustomizer
in classBundleProvisioner
-
-