]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.osgiboot/src/main/java/org/argeo/slc/osgiboot/Activator.java
0945ca7197f5ea2c19904219e70a0a2aef3c9b29
[gpl/argeo-slc.git] / runtime / org.argeo.slc.osgiboot / src / main / java / org / argeo / slc / osgiboot / Activator.java
1 package org.argeo.slc.osgiboot;
2
3 import org.osgi.framework.BundleActivator;
4 import org.osgi.framework.BundleContext;
5
6 public class Activator implements BundleActivator {
7
8 public void start(BundleContext bundleContext) throws Exception {
9 try {
10 OsgiBoot.info("SLC OSGi bootstrap starting...");
11 OsgiBoot osgiBoot = new OsgiBoot(bundleContext);
12 osgiBoot.installUrls(osgiBoot.getBundlesUrls());
13 osgiBoot.installUrls(osgiBoot.getLocationsUrls());
14 osgiBoot.installUrls(osgiBoot.getModulesUrls());
15 osgiBoot.startBundles();
16 OsgiBoot.info("SLC OSGi bootstrap completed");
17 } catch (Exception e) {
18 e.printStackTrace();
19 throw e;
20 }
21 }
22
23 public void stop(BundleContext context) throws Exception {
24 }
25 }