Packageorg.spicefactory.parsley.core.state.manager
Interfacepublic interface GlobalObjectManager
Implementors DefaultGlobalObjectManager

Keeps track of all managed objects of all the currently active Context instances. Provides only status information without actuall managing the objects itself (which is the responsibility of the kernel services of each individual Context).

This manager is usually only exposed to the IOC kernel services and can be accessed through a BootstrapInfo instance.



Public Properties
 PropertyDefined By
  publicState : GlobalObjectState
[read-only] The state information for all mamnaged objects in a read-only format to be exposed to applications.
GlobalObjectManager
Public Methods
 MethodDefined By
  
Adds the specified object to this manager
GlobalObjectManager
  
Returns the ManagedObject instance that holds the specified object or null if the object is not managed by any Context currently.
GlobalObjectManager
  
Removes the specified object from this manager
GlobalObjectManager
Property Detail
publicStateproperty
publicState:GlobalObjectState  [read-only]

The state information for all mamnaged objects in a read-only format to be exposed to applications.


Implementation
    public function get publicState():GlobalObjectState
Method Detail
addManagedObject()method
public function addManagedObject(mo:ManagedObject):void

Adds the specified object to this manager

Parameters

mo:ManagedObject — the managed object to add

getManagedObject()method 
public function getManagedObject(instance:Object):ManagedObject

Returns the ManagedObject instance that holds the specified object or null if the object is not managed by any Context currently.

Parameters

instance:Object — the object to return the corresponding ManagedObject instance for

Returns
ManagedObject — the ManagedObject instance that holds the specified object
removeManagedObject()method 
public function removeManagedObject(mo:ManagedObject):void

Removes the specified object from this manager

Parameters

mo:ManagedObject — the managed object to remove