import org.osgi.framework.BundleContext;
/**
- * An OSGi configurator. See <a
- * href="http://wiki.eclipse.org/Configurator">http:
+ * An OSGi configurator. See
+ * <a href="http://wiki.eclipse.org/Configurator">http:
* //wiki.eclipse.org/Configurator</a>
*/
public class Activator implements BundleActivator {
+ private Long checkpoint = null;
public void start(final BundleContext bundleContext) throws Exception {
// admin thread
// bootstrap
OsgiBoot osgiBoot = new OsgiBoot(bundleContext);
- osgiBoot.bootstrap();
+ if (checkpoint == null) {
+ osgiBoot.bootstrap();
+ checkpoint = System.currentTimeMillis();
+ } else {
+ osgiBoot.update();
+ checkpoint = System.currentTimeMillis();
+ }
}
public void stop(BundleContext context) throws Exception {