Accessing contexts

From CCIL
Jump to: navigation, search

Application contexts are being accessed trough a system service, named contexts. Upon startup (most probably in the @startup method), ytou will have code like this:

...
IContextsService contexts;
...
contexts = LocalServer.getService(IContextsService.NAME,
				IContextsService.class);
...

Usage

The contexts service has several methods:

  • getApps - the getaApps method returns all the application contexts, registered in the system.
...
AppInfo[] apps = contexts.getApps();
...