|Modifier and Type||Method and Description|
This method needs an argument, an object that represents the application instance.
public static ApplicationContext getApplicationContext(Object applicationInstance)
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
ApplicationContextof the specified application instance.
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