@Override public void start(final BundleContext context) throws Exception { // Tracked resource killbillAPI = new OSGIKillbillAPI(context); logService = new OSGIKillbillLogService(context); dataSource = new OSGIKillbillDataSource(context); dispatcher = new OSGIKillbillEventDispatcher(context); // Registrar for bundle registrar = new OSGIKillbillRegistrar(); // Killbill events final OSGIKillbillEventHandler handler = getOSGIKillbillEventHandler(); if (handler != null) { dispatcher.registerEventHandler(handler); } }
@Override public void start(final BundleContext context) throws Exception { // Tracked resource killbillAPI = new OSGIKillbillAPI(context); logService = new OSGIKillbillLogService(context); dataSource = new OSGIKillbillDataSource(context); dispatcher = new OSGIKillbillEventDispatcher(context); // Registrar for bundle registrar = new OSGIKillbillRegistrar(); // Killbill events final OSGIKillbillEventHandler handler = getOSGIKillbillEventHandler(); if (handler != null) { dispatcher.registerEventHandler(handler); } }