The following steps are required to stop a bundle:
UNINSTALLED then an IllegalStateException is thrown. BundleException is thrown to indicate this bundle was unable to be stopped. STARTING or ACTIVE then this method returns immediately. STOPPING. ACTIVE prior to setting the state to STOPPING, the {@link BundleActivator#stop} methodof this bundle's BundleActivator, if one is specified, is called. If that method throws an exception, this method must continue to stop this bundle and a BundleException must be thrown after completion of the remaining steps. UNINSTALLED, because this bundle was uninstalled while the BundleActivator.stop method was running, a BundleException must be thrown. RESOLVED. getState() in { ACTIVE }. getState() not in { ACTIVE, STOPPING }. BundleActivator.stop has been called and did not throw an exception. BundleActivatorthrew an exception or this bundle is a fragment.
@throws IllegalStateException If this bundle has been uninstalled or thisbundle tries to change its own state.
@throws SecurityException If the caller does not have the appropriateAdminPermission[this,EXECUTE], and the Java Runtime Environment supports permissions.
@since 1.4
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |