Packageorg.spicefactory.parsley.core.scope.impl
Classpublic class DefaultScopeInfo
InheritanceDefaultScopeInfo Inheritance Object
Implements ScopeInfo

Default implementation of the ScopeInfo interface.



Public Properties
 PropertyDefined By
  bindingManager : BindingManager
[read-only]
DefaultScopeInfo
  commandManager : CommandManager
[read-only] The manager for active commands in this scope.
DefaultScopeInfo
  extensions : ScopeExtensions
[read-only] The extensions registered for this scope.
DefaultScopeInfo
  inherited : Boolean
[read-only] Indicates whether this scope will be inherited by child Contexts.
DefaultScopeInfo
  lifecycleObservers : LifecycleObserverRegistry
[read-only] The registry for observers of lifecycle events dispatched by objects within this scope.
DefaultScopeInfo
  messageReceivers : MessageReceiverRegistry
[read-only] The registry for receivers of application messages dispatched through this scope.
DefaultScopeInfo
  name : String
[read-only] The name of the scope.
DefaultScopeInfo
  persistenceManager : PersistenceManager
[read-only]
DefaultScopeInfo
  rootContext : Context
[read-only] The root Context of this scope.
DefaultScopeInfo
  uuid : String
[read-only] The unique id of the scope.
DefaultScopeInfo
Public Methods
 MethodDefined By
  
Creates a new instance.
DefaultScopeInfo
  
Adds an actice command to the command manager of this scope.
DefaultScopeInfo
  
Returns the cache of message receivers for the specified message type.
DefaultScopeInfo
  
selectLifecycleObservers(type:ClassInfo, phaseKey:String, id:String = null):Array
Returns all matching observers for the specified target type, id and lifecycle phase.
DefaultScopeInfo
Property Detail
bindingManagerproperty
bindingManager:BindingManager  [read-only]


Implementation
    public function get bindingManager():BindingManager
commandManagerproperty 
commandManager:CommandManager  [read-only]

The manager for active commands in this scope.


Implementation
    public function get commandManager():CommandManager
extensionsproperty 
extensions:ScopeExtensions  [read-only]

The extensions registered for this scope.


Implementation
    public function get extensions():ScopeExtensions
inheritedproperty 
inherited:Boolean  [read-only]

Indicates whether this scope will be inherited by child Contexts.


Implementation
    public function get inherited():Boolean
lifecycleObserversproperty 
lifecycleObservers:LifecycleObserverRegistry  [read-only]

The registry for observers of lifecycle events dispatched by objects within this scope.


Implementation
    public function get lifecycleObservers():LifecycleObserverRegistry
messageReceiversproperty 
messageReceivers:MessageReceiverRegistry  [read-only]

The registry for receivers of application messages dispatched through this scope.


Implementation
    public function get messageReceivers():MessageReceiverRegistry
nameproperty 
name:String  [read-only]

The name of the scope.


Implementation
    public function get name():String
persistenceManagerproperty 
persistenceManager:PersistenceManager  [read-only]


Implementation
    public function get persistenceManager():PersistenceManager
rootContextproperty 
rootContext:Context  [read-only]

The root Context of this scope.


Implementation
    public function get rootContext():Context
uuidproperty 
uuid:String  [read-only]

The unique id of the scope.


Implementation
    public function get uuid():String
Constructor Detail
DefaultScopeInfo()Constructor
public function DefaultScopeInfo(scopeDef:ScopeDefinition, info:BootstrapInfo)

Creates a new instance.

Parameters
scopeDef:ScopeDefinition — the definition of the scope
 
info:BootstrapInfo — the root Context for this scope
Method Detail
addActiveCommand()method
public function addActiveCommand(command:ObservableCommand):void

Adds an actice command to the command manager of this scope. As the CommandManager is a public API it does not contain a comparable method itself.

Parameters

command:ObservableCommand

getMessageReceiverCache()method 
public function getMessageReceiverCache(type:ClassInfo):MessageReceiverCache

Returns the cache of message receivers for the specified message type. If no cache for that type exists yet, implementations should create and return a new cache instance.

Parameters

type:ClassInfo — the message type to return the receiver cache for

Returns
MessageReceiverCache — the cache of message receivers for the specified message type
selectLifecycleObservers()method 
public function selectLifecycleObservers(type:ClassInfo, phaseKey:String, id:String = null):Array

Returns all matching observers for the specified target type, id and lifecycle phase.

Parameters

type:ClassInfo — the object type to return the observers for
 
phaseKey:String — the lifecycle phase of the observed object
 
id:String (default = null) — the id of the observerd object

Returns
Array — all matching observers