protected void stopAllButRestartMechanism(final BundleContext context) throws Exception { registrar.unregisterAll(); registrar = null;
@Override public void start(final BundleContext context) throws Exception { // Tracked resource logService = new OSGIKillbillLogService(context); logSafely(LogService.LOG_INFO, String.format("OSGI bundle='%s' received START command", context.getBundle().getSymbolicName())); killbillAPI = new OSGIKillbillAPI(context); roOSGIkillbillAPI = new ROOSGIKillbillAPI(context); configureSLF4JBinding(); dataSource = new OSGIKillbillDataSource(context); dispatcher = new OSGIKillbillEventDispatcher(context); configProperties = new OSGIConfigPropertiesService(context); clock = new OSGIKillbillClock(context); // Registrar for bundle registrar = new OSGIKillbillRegistrar(); final PluginConfig pluginConfig = retrievePluginConfig(context); tmpDir = setupTmpDir(pluginConfig); setupRestartMechanism(pluginConfig, context); }
@Override public void start(final BundleContext context) throws Exception { // Tracked resource logService = new OSGIKillbillLogService(context); logSafely(LogService.LOG_INFO, String.format("OSGI bundle='%s' received START command", context.getBundle().getSymbolicName())); killbillAPI = new OSGIKillbillAPI(context); roOSGIkillbillAPI = new ROOSGIKillbillAPI(context); configureSLF4JBinding(); dataSource = new OSGIKillbillDataSource(context); dispatcher = new OSGIKillbillEventDispatcher(context); configProperties = new OSGIConfigPropertiesService(context); clock = new OSGIKillbillClock(context); // Registrar for bundle registrar = new OSGIKillbillRegistrar(); final PluginConfig pluginConfig = retrievePluginConfig(context); tmpDir = setupTmpDir(pluginConfig); setupRestartMechanism(pluginConfig, context); }
protected void stopAllButRestartMechanism(final BundleContext context) throws Exception { registrar.unregisterAll(); registrar = null;