Packageorg.spicefactory.parsley.core.scope
Interfacepublic interface ScopeInfoRegistry
Implementors DefaultScopeInfoRegistry

The registry of scope instances for a single Context. In contrast to the public API of the ScopeManager this registry holds ScopeInfo instances which represent the internal API for a single scope. The registry is available for kernel services through the BootstrapInfo instance passed to their init methods.



Public Properties
 PropertyDefined By
  activeScopes : Array
[read-only] The active scopes for this Context.
ScopeInfoRegistry
  newScopes : Array
[read-only] The definitions for the scopes that were added to this Context.
ScopeInfoRegistry
  parentScopes : Array
[read-only] The scopes that were marked for inheritance from the parent Context.
ScopeInfoRegistry
Public Methods
 MethodDefined By
  
Adds a new active scope for this Context, in most cases either created from one of the definitions held in the newScopes property or passed on from the existing ScopeInfo instances in the parentScopes property.
ScopeInfoRegistry
Property Detail
activeScopesproperty
activeScopes:Array  [read-only]

The active scopes for this Context.

Will be empty initially, but will later hold all instances added to this registry with the addActiveScope method, usually during initialization of the ScopeManager instance.

The Array holds ScopeInfo instances.


Implementation
    public function get activeScopes():Array
newScopesproperty 
newScopes:Array  [read-only]

The definitions for the scopes that were added to this Context.

The ScopeManager implementation is supposed to turn these into ScopeInfo instances and add them to this instance with the addActiveScope method.

The Array holds ScopeDefinition instances.


Implementation
    public function get newScopes():Array
parentScopesproperty 
parentScopes:Array  [read-only]

The scopes that were marked for inheritance from the parent Context.

The ScopeManager implementation is supposed to pass them to the addActiveScope method if they should indeed get added to this Context. In most cases all inherited scopes from the parent Context will get added, but the final decision is up to the ScopeManager.

The Array holds ScopeInfo instances.


Implementation
    public function get parentScopes():Array
Method Detail
addActiveScope()method
public function addActiveScope(info:ScopeInfo):void

Adds a new active scope for this Context, in most cases either created from one of the definitions held in the newScopes property or passed on from the existing ScopeInfo instances in the parentScopes property.

Parameters

info:ScopeInfo — the scope to add for this Context.