public class BundleProvisioner extends Object
Customizer
object. Please refer to
BundleProvisioner.DefaultCustomizer
for the default policy.Modifier and Type | Class and Description |
---|---|
static class |
BundleProvisioner.DefaultCustomizer
This is default implementation of
Customizer which uses the URI of the Jar as location. |
Constructor and Description |
---|
BundleProvisioner(org.osgi.framework.BundleContext bundleContext,
com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.Customizer customizer) |
BundleProvisioner(org.osgi.framework.BundleContext bundleContext,
Properties config) |
Modifier and Type | Method and Description |
---|---|
org.osgi.framework.BundleContext |
getBundleContext() |
com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.Customizer |
getCustomizer() |
int |
getNoOfInstalledBundles() |
int |
getNoOfUninstalledBundles() |
int |
getNoOfUpdatedBundles() |
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.
|
boolean |
isSystemBundleUpdationRequired() |
static void |
main(String[] args)
A simple main method to test this class
|
void |
refresh()
Refresh packages
|
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
protected void |
setSystemBundleUpdationRequired(boolean systemBundleUpdationRequired) |
void |
startBundles()
Go through the list of auto start bundles and start them.
|
protected int |
uninstall(List<com.sun.enterprise.glassfish.bootstrap.osgi.Jar> bundles) |
public BundleProvisioner(org.osgi.framework.BundleContext bundleContext, Properties config)
public BundleProvisioner(org.osgi.framework.BundleContext bundleContext, com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.Customizer customizer)
public org.osgi.framework.BundleContext getBundleContext()
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
public List<Long> installBundles()
public void startBundles()
protected int uninstall(List<com.sun.enterprise.glassfish.bootstrap.osgi.Jar> bundles)
public void refresh()
public boolean hasAnyThingChanged()
public boolean isSystemBundleUpdationRequired()
protected void setSystemBundleUpdationRequired(boolean systemBundleUpdationRequired)
public int getNoOfUninstalledBundles()
public int getNoOfUpdatedBundles()
public int getNoOfInstalledBundles()
public com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.Customizer getCustomizer()
Copyright © 2015. All rights reserved.