Packagech.capi.net.app
Classpublic class ApplicationContextRegisterer
InheritanceApplicationContextRegisterer Inheritance Object

Utility class to register the named IApplicationContext instances.

See also

IApplicationContext


Public Methods
 MethodDefined By
  
enumerateAll():Array
[static] Enumerates all the IApplicationContext registered.
ApplicationContextRegisterer
  
get(appCtxName:String):IApplicationContext
[static] Retrieves the specified IApplicationContext.
ApplicationContextRegisterer
  
[static] Registers the specified IApplicationContext.
ApplicationContextRegisterer
Method Detail
enumerateAll()method
public static function enumerateAll():Array

Enumerates all the IApplicationContext registered.

Returns
Array — An Array containing the names of the registered IApplicationContext.
get()method 
public static function get(appCtxName:String):IApplicationContext

Retrieves the specified IApplicationContext.

Parameters

appCtxName:String — The name of the IApplicationContext.

Returns
IApplicationContext — The IApplicationContext or null if the specified name doesn't exist.
register()method 
public static function register(context:IApplicationContext):void

Registers the specified IApplicationContext. It must be named otherwise a IllegalOperationError will be thrown.

Parameters

context:IApplicationContext — The IApplicationContext.


Throws
IllegalOperationError If — the IApplicationContext is not named.
 
ch.capi.errors:DataError If — an IApplicationContext with the same name already exists.