Accessing contexts

From CCIL
Revision as of 08:25, 13 June 2016 by Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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();
...