+ public void start(BundleContext bundleContext) {
+ // logging
+ loggingConfigurationSr = bundleContext.registerService(Consumer.class,
+ ThinLoggerFinder.getConfigurationConsumer(),
+ new Hashtable<>(Collections.singletonMap(Constants.SERVICE_PID, "argeo.logging.configuration")));
+ logEntryPublisherSr = bundleContext.registerService(Flow.Publisher.class,
+ ThinLoggerFinder.getLogEntryPublisher(),
+ new Hashtable<>(Collections.singletonMap(Constants.SERVICE_PID, "argeo.logging.publisher")));
+
+ osgiBoot = new OsgiBoot(bundleContext);
+ osgiBoot.bootstrap();
+
+ }
+
+ public void update() {
+ Objects.requireNonNull(osgiBoot);
+ osgiBoot.update();
+ }
+
+ public void stop(BundleContext bundleContext) {
+ if (loggingConfigurationSr != null)
+ loggingConfigurationSr.unregister();
+ if (logEntryPublisherSr != null)
+ logEntryPublisherSr.unregister();
+
+ }
+