Packageorg.spicefactory.parsley.core.scope.impl
Classpublic class DefaultScopeInfoRegistry
InheritanceDefaultScopeInfoRegistry Inheritance Object
Implements ScopeInfoRegistry

Default implementation of the ScopeInfoRegistry interface.



Public Properties
 PropertyDefined By
  activeScopes : Array
[read-only] The active scopes for this Context.
DefaultScopeInfoRegistry
  newScopes : Array
[read-only] The definitions for the scopes that were added to this Context.
DefaultScopeInfoRegistry
  parentScopes : Array
[read-only] The scopes that were marked for inheritance from the parent Context.
DefaultScopeInfoRegistry
Public Methods
 MethodDefined By
  
DefaultScopeInfoRegistry(newScopes:Array, parentScopes:Array)
Creates a new instance
DefaultScopeInfoRegistry
  
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.
DefaultScopeInfoRegistry
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
Constructor Detail
DefaultScopeInfoRegistry()Constructor
public function DefaultScopeInfoRegistry(newScopes:Array, parentScopes:Array)

Creates a new instance

Parameters
newScopes:Array — the definitions for the scopes that were added to this Context
 
parentScopes:Array — the scopes that were marked for inheritance from the parent Context
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.