|
OSGi™ Service Platform Release 4 Version 4.2 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.osgi.application.Framework
public final class Framework
Using this class, OSGi-aware applications can obtain their
ApplicationContext
.
Method Summary | |
---|---|
static ApplicationContext |
getApplicationContext(java.lang.Object applicationInstance)
This method needs an argument, an object that represents the application instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 instance
ApplicationContext
of the specified application instance.
java.lang.NullPointerException
- If applicationInstance
is null
java.lang.IllegalArgumentException
- if called with an object that is not
the activator object of an application.
|
OSGi™ Service Platform Release 4 Version 4.2 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |