If this bundle's state is UNINSTALLED then an IllegalStateException is thrown.
If the Framework implements the optional Start Level service and the current start level is less than this bundle's start level:
BundleException is thrown indicating this bundle cannot be started due to the Framework's current start level. When the Framework's current start level becomes equal to or more than this bundle's start level, this bundle will be started.
Otherwise, the following steps are required to start this bundle:
BundleException is thrown to indicate this bundle was unable to be started. ACTIVE then this method returns immediately. RESOLVED, an attempt is made to resolve this bundle. If the Framework cannot resolve this bundle, a BundleException is thrown. STARTING then this method returns immediately. STARTING. STARTING. BundleActivator, if one is specified, is called. If the BundleActivator is invalid or throws an exception then: STOPPING. RESOLVED. BundleException is then thrown. UNINSTALLED, because this bundle was uninstalled while the BundleActivator.start method was running, a BundleException is thrown. ACTIVE. getState() in { INSTALLED, RESOLVED } or { INSTALLED, RESOLVED, STARTING } if this bundle has a lazy activation policy. getState() in { ACTIVE } unless the lazy activation policy was used. BundleActivator.start() has been called and did not throw an exception unless the lazy activation policy was used. getState() not in { STARTING, ACTIVE }. BundleActivator could not be loaded or threw 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
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |