Package | org.spicefactory.parsley.core.state.manager |
Interface | public interface GlobalContextManager |
Implementors | DefaultGlobalContextManager |
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.
Method | Defined By | ||
---|---|---|---|
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 | ||
getInheritedScopes(context:Context):Array
Returns the inherited scopes for the specified Context instance. | GlobalContextManager |
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
|
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
|
Array — the inherited scopes for the specified Context instance
|