Packageorg.spicefactory.parsley.core.scope
Interfacepublic interface ScopeInfo
Implementors DefaultScopeInfo

Holds the definition and state (like all registered message receivers) for a single scope. Instances of this class will be shared by all ScopeManagers of all Context instances that a scope is associated with.



Public Properties
 PropertyDefined By
  commandManager : CommandManager
[read-only] The manager for active commands in this scope.
ScopeInfo
  extensions : ScopeExtensions
[read-only] The extensions registered for this scope.
ScopeInfo
  inherited : Boolean
[read-only] Indicates whether this scope will be inherited by child Contexts.
ScopeInfo
  lifecycleObservers : LifecycleObserverRegistry
[read-only] The registry for observers of lifecycle events dispatched by objects within this scope.
ScopeInfo
  messageReceivers : MessageReceiverRegistry
[read-only] The registry for receivers of application messages dispatched through this scope.
ScopeInfo
  name : String
[read-only] The name of the scope.
ScopeInfo
  objectLifecycle : ObjectLifecycleScope
Deprecated: Please Use lifecycleObservers
[read-only]
ScopeInfo
  rootContext : Context
[read-only] The root Context of this scope.
ScopeInfo
  uuid : String
[read-only] The unique id of the scope.
ScopeInfo
Public Methods
 MethodDefined By
  
Adds an actice command to the command manager of this scope.
ScopeInfo
  
Returns the cache of lifecycle observers for the specified object type.
ScopeInfo
  
Returns the cache of message receivers for the specified message type.
ScopeInfo
Property Detail
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
objectLifecycleproperty 
objectLifecycle:ObjectLifecycleScope  [read-only]
Deprecated: Please Use lifecycleObservers


Implementation
    public function get objectLifecycle():ObjectLifecycleScope
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
Method Detail
addActiveCommand()method
public function addActiveCommand(command:Command):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:Command

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

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

Parameters

type:ClassInfo — the object type to return the observer cache for

Returns
MessageReceiverCache — the cache of lifecycle observers for the specified object type
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