]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.osgi.boot/src/org/argeo/osgi/boot/Activator.java
Add Jcr utilities.
[lgpl/argeo-commons.git] / org.argeo.osgi.boot / src / org / argeo / osgi / boot / Activator.java
1 package org.argeo.osgi.boot;
2
3 import org.osgi.framework.BundleActivator;
4 import org.osgi.framework.BundleContext;
5
6 /**
7 * An OSGi configurator. See
8 * <a href="http://wiki.eclipse.org/Configurator">http:
9 * //wiki.eclipse.org/Configurator</a>
10 */
11 public class Activator implements BundleActivator {
12 private Long checkpoint = null;
13
14 public void start(final BundleContext bundleContext) throws Exception {
15 // admin thread
16 Thread adminThread = new AdminThread(bundleContext);
17 adminThread.start();
18
19 // bootstrap
20 OsgiBoot osgiBoot = new OsgiBoot(bundleContext);
21 if (checkpoint == null) {
22 osgiBoot.bootstrap();
23 checkpoint = System.currentTimeMillis();
24 } else {
25 osgiBoot.update();
26 checkpoint = System.currentTimeMillis();
27 }
28 }
29
30 public void stop(BundleContext context) throws Exception {
31 }
32 }