public final class Framework
extends java.lang.Object
ApplicationContext.| Modifier and Type | Method | Description |
|---|---|---|
static ApplicationContext |
getApplicationContext(java.lang.Object applicationInstance) |
This method needs an argument, an object that represents the application instance.
|
public static ApplicationContext getApplicationContext(java.lang.Object applicationInstance)
The returned ApplicationContext object is singleton for the
specified application instance. Subsequent calls to this method with the same
application instance must return the same context object
applicationInstance - is the activator object of an application instanceApplicationContext of the specified application instance.java.lang.NullPointerException - If applicationInstance
is nulljava.lang.IllegalArgumentException - if called with an object that is not
the activator object of an application.