Packageorg.spicefactory.parsley.core.state.manager
Interfacepublic interface GlobalContextManager
Implementors DefaultGlobalContextManager

Keeps track of the currently active Context instances. Provides access to the inherited scopes and BootstrapConfig instances used to create the Context. These objects are not exposed through the Context API, but might be needed by a child Context for configuration purposes. This manager helps to separate public and internal APIs.

This manager is usually only exposed to the IOC kernel services and can be accessed through a BootstrapInfo instance.



Public Methods
 MethodDefined By
  
addContext(context:Context, config:BootstrapConfig, scopes:ScopeInfoRegistry):void
Adds the specified Context to the manager and stores the associated bootstrap instances to be used for child Context construction.
GlobalContextManager
  
Returns the bootstrap configuration for the specified Context instance.
GlobalContextManager
  
Returns the inherited scopes for the specified Context instance.
GlobalContextManager
Method Detail
addContext()method
public function addContext(context:Context, config:BootstrapConfig, scopes:ScopeInfoRegistry):void

Adds the specified Context to the manager and stores the associated bootstrap instances to be used for child Context construction.

Parameters

context:Context — the Context instance
 
config:BootstrapConfig — the configuration for the Context
 
scopes:ScopeInfoRegistry — the scopes available in the Context

getBootstrapConfig()method 
public function getBootstrapConfig(context:Context):BootstrapConfig

Returns the bootstrap configuration for the specified Context instance.

Parameters

context:Context — the Context to return the bootstrap configuration for

Returns
BootstrapConfig — the bootstrap configuration for the specified Context instance
getInheritedScopes()method 
public function getInheritedScopes(context:Context):Array

Returns the inherited scopes for the specified Context instance.

Parameters

context:Context — the Context to return the inherited scopes for

Returns
Array — the inherited scopes for the specified Context instance