| Package | org.spicefactory.parsley.core.scope |
| Interface | public interface ScopeInfoRegistry |
| Implementors | DefaultScopeInfoRegistry |
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.
| Property | Defined 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 | ||
| Method | Defined By | ||
|---|---|---|---|
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. | ScopeInfoRegistry | ||
| activeScopes | property |
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.
public function get activeScopes():Array| newScopes | property |
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.
public function get newScopes():Array| parentScopes | property |
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.
public function get parentScopes():Array| addActiveScope | () | method |
public function addActiveScope(info:ScopeInfo):voidAdds 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.
|