public class FrameworkState
extends java.lang.Object
The OSGi framework system bundle is the single best indicator of when the framework is in the process of stopping: OSGi stop semantics dictate that the framework change the system bundle's state to STOPPING before it begins stopping bundles.
The interrelationship between declared services (DS or Blueprint) means that service A might be deactivated because a service it requires from another bundle has gone away (because that bundle has stopped) before its own bundle has stopped.
This utility can be used to curtail scheduling additional asynchronous work if the framework is stopping.
Constructor and Description |
---|
FrameworkState() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isStopping() |
static boolean |
isValid() |
public static boolean isValid()
public static boolean isStopping()