public final class Framework extends Object
ApplicationContext
.Modifier and Type | Method and Description |
---|---|
static ApplicationContext |
getApplicationContext(Object applicationInstance)
This method needs an argument, an object that represents the application
instance.
|
public static ApplicationContext getApplicationContext(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.NullPointerException
- If applicationInstance
is
null
IllegalArgumentException
- if called with an object that
is not the activator object of an application.Copyright © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0