public void stop(BundleContext bc) { // stop the app commands for the console try { AppCommands.destroy(bc); } catch (NoClassDefFoundError e) { // catch incase CommandProvider is not available } // close the registry tracker; this will stop the container if it was started registryTracker.close(); registryTracker = null; // unset the app manager context after the container has been stopped AppPersistence.stop(); if (_frameworkLogTracker != null) { _frameworkLogTracker.close(); _frameworkLogTracker = null; } _packageAdmin = null; // we do not unget PackageAdmin here; let the framework do it for us _context = null; }
public void stop(BundleContext bc) { // stop the app commands for the console try { AppCommands.destroy(bc); } catch (NoClassDefFoundError e) { // catch incase CommandProvider is not available } // close the registry tracker; this will stop the container if it was started registryTracker.close(); registryTracker = null; // unset the app manager context after the container has been stopped AppPersistence.stop(); if (_frameworkLogTracker != null) { _frameworkLogTracker.close(); _frameworkLogTracker = null; } _packageAdmin = null; // we do not unget PackageAdmin here; let the framework do it for us _context = null; }
@Override public void stop(BundleContext bc) { // stop the app commands for the console try { AppCommands.destroy(bc); } catch (NoClassDefFoundError e) { // catch incase CommandProvider is not available } // close the registry tracker; this will stop the container if it was started registryTracker.close(); registryTracker = null; // unset the app manager context after the container has been stopped AppPersistence.stop(); if (_frameworkLogTracker != null) { _frameworkLogTracker.close(); _frameworkLogTracker = null; } _packageAdmin = null; // we do not unget PackageAdmin here; let the framework do it for us _context = null; }