import org.osgi.util.tracker.ServiceTracker;
public class ScriptAppActivator implements BundleActivator {
-// ServiceRegistration<ApplicationConfiguration> appConfigReg;
-
@Override
public void start(BundleContext context) throws Exception {
CmsScriptRwtApplication appConfig = new CmsScriptRwtApplication();
appConfig.setRepository(repository);
CmsScriptApp app = appConfig.getApp();
app.register(context, appConfig);
-// Hashtable<String, String> props = new Hashtable<>();
-// if (app.getWebPath() != null)
-// props.put("contextName", app.getWebPath());
-// appConfigReg = context.registerService(ApplicationConfiguration.class, appConfig, props);
return repository;
}
@Override
public void stop(BundleContext context) throws Exception {
-// if (appConfigReg != null)
-// appConfigReg.unregister();
-
}
}