Packageorg.spicefactory.parsley.core.state.manager.impl
Classpublic class DefaultGlobalContextManager
InheritanceDefaultGlobalContextManager Inheritance Object
Implements GlobalContextManager

Default implementation of the GlobalContextManager interface.



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.
DefaultGlobalContextManager
  
Returns the bootstrap configuration for the specified Context instance.
DefaultGlobalContextManager
  
Returns the inherited scopes for the specified Context instance.
DefaultGlobalContextManager
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