| Package | org.spicefactory.parsley.core.scope.impl |
| Class | public class DefaultScope |
| Inheritance | DefaultScope Object |
| Implements | Scope |
| Property | Defined By | ||
|---|---|---|---|
| bindingManager : BindingManager [read-only]
The manager for publishers and subscribers of the decoupled binding facility. | DefaultScope | ||
| commandManager : CommandManager [read-only]
The manager for active asynchronous commands in this scope. | DefaultScope | ||
| extensions : ScopeExtensions [read-only]
Custom extensions registered for this scope. | DefaultScope | ||
| inherited : Boolean [read-only]
Indicates whether this scope will be inherited by child Contexts. | DefaultScope | ||
| lifecycleObservers : LifecycleObserverRegistry [read-only]
The registry for observers of lifecycle events dispatched by objects within this scope. | DefaultScope | ||
| messageReceivers : MessageReceiverRegistry [read-only]
The registry for receivers of application messages dispatched through this scope. | DefaultScope | ||
| name : String [read-only]
The name of the scope. | DefaultScope | ||
| persistenceManager : PersistenceManager [read-only]
The manager for values persisted by publishers. | DefaultScope | ||
| rootContext : Context [read-only]
The root Context of this scope. | DefaultScope | ||
| uuid : String [read-only]
The unique id of this scope. | DefaultScope | ||
| Method | Defined By | ||
|---|---|---|---|
Creates a new instance. | DefaultScope | ||
dispatchMessage(message:Object, selector:*):void
Dispatches a message through this scope. | DefaultScope | ||
| bindingManager | property |
bindingManager:BindingManager [read-only] The manager for publishers and subscribers of the decoupled binding facility.
public function get bindingManager():BindingManager| commandManager | property |
commandManager:CommandManager [read-only] The manager for active asynchronous commands in this scope.
public function get commandManager():CommandManager| extensions | property |
extensions:ScopeExtensions [read-only] Custom extensions registered for this scope.
public function get extensions():ScopeExtensions| inherited | property |
inherited:Boolean [read-only] Indicates whether this scope will be inherited by child Contexts.
public function get inherited():Boolean| lifecycleObservers | property |
lifecycleObservers:LifecycleObserverRegistry [read-only] The registry for observers of lifecycle events dispatched by objects within this scope.
public function get lifecycleObservers():LifecycleObserverRegistry| messageReceivers | property |
messageReceivers:MessageReceiverRegistry [read-only] The registry for receivers of application messages dispatched through this scope.
public function get messageReceivers():MessageReceiverRegistry| name | property |
name:String [read-only] The name of the scope.
public function get name():String| persistenceManager | property |
persistenceManager:PersistenceManager [read-only] The manager for values persisted by publishers.
public function get persistenceManager():PersistenceManager| rootContext | property |
rootContext:Context [read-only] The root Context of this scope.
public function get rootContext():Context| uuid | property |
uuid:String [read-only] The unique id of this scope. In small or mid-size projects an id is often not needed, the framework will autogenerate the id in these cases and it can simply be ignored. In a big modular application there may be the need to address one particular scope within the system and the scheme of ids assigned to the scopes is often application-specific. The uid may be used to identify persistent published values or to explicitly route messages.
public function get uuid():String| DefaultScope | () | Constructor |
public function DefaultScope(context:Context, info:ScopeInfo, router:MessageRouter, domain:ApplicationDomain)Creates a new instance.
Parameterscontext:Context — the Context this scope instance is associated with
| |
info:ScopeInfo — the shared info for this scope, holding all scope-wide state like registered message receivers
| |
router:MessageRouter — the message router to use for dispatching messages through this scope
| |
domain:ApplicationDomain — the ApplicationDomain to use for reflection
|
| dispatchMessage | () | method |
public function dispatchMessage(message:Object, selector:*):voidDispatches a message through this scope.
Parameters
message:Object — the message to dispatch
| |
selector:* (default = NaN) — the selector to use if it cannot be determined from the message instance itself
|