@Override public void start(BundleContext bc) { _context = bc; // doing simple get service here because we expect the PackageAdmin service to always be available ServiceReference ref = bc.getServiceReference(PackageAdmin.class.getName()); if (ref != null) _packageAdmin = (PackageAdmin) bc.getService(ref); _frameworkLogTracker = new ServiceTracker(bc, FrameworkLog.class.getName(), null); _frameworkLogTracker.open(); getDebugOptions(bc); processCommandLineArgs(bc); // set the app manager context before starting the container AppPersistence.start(bc); // we must have an extension registry started before we can start the container registryTracker = new ServiceTracker(bc, IExtensionRegistry.class.getName(), this); registryTracker.open(); // start the app commands for the console try { AppCommands.create(bc); } catch (NoClassDefFoundError e) { // catch incase CommandProvider is not available } }
public void start(BundleContext bc) { _context = bc; // doing simple get service here because we expect the PackageAdmin service to always be available ServiceReference ref = bc.getServiceReference(PackageAdmin.class.getName()); if (ref != null) _packageAdmin = (PackageAdmin) bc.getService(ref); _frameworkLogTracker = new ServiceTracker(bc, FrameworkLog.class.getName(), null); _frameworkLogTracker.open(); getDebugOptions(bc); processCommandLineArgs(bc); // set the app manager context before starting the container AppPersistence.start(bc); // we must have an extension registry started before we can start the container registryTracker = new ServiceTracker(bc, IExtensionRegistry.class.getName(), this); registryTracker.open(); // start the app commands for the console try { AppCommands.create(bc); } catch (NoClassDefFoundError e) { // catch incase CommandProvider is not available } }
public void start(BundleContext bc) { _context = bc; // doing simple get service here because we expect the PackageAdmin service to always be available ServiceReference ref = bc.getServiceReference(PackageAdmin.class.getName()); if (ref != null) _packageAdmin = (PackageAdmin) bc.getService(ref); _frameworkLogTracker = new ServiceTracker(bc, FrameworkLog.class.getName(), null); _frameworkLogTracker.open(); getDebugOptions(bc); processCommandLineArgs(bc); // set the app manager context before starting the container AppPersistence.start(bc); // we must have an extension registry started before we can start the container registryTracker = new ServiceTracker(bc, IExtensionRegistry.class.getName(), this); registryTracker.open(); // start the app commands for the console try { AppCommands.create(bc); } catch (NoClassDefFoundError e) { // catch incase CommandProvider is not available } }