Packageorg.spicefactory.parsley.core.context
Interfacepublic interface DynamicObject
Implementors DefaultDynamicObject

Represents a single dynamic object that belongs to a DynamicContext instance. Such an object can be dynamically removed from the Context anytime before the Context gets destroyed.



Public Properties
 PropertyDefined By
  context : Context
[read-only] The Context that managed this object.
DynamicObject
  definition : DynamicObjectDefinition
[read-only] The definition the object was created from or the definition that was applied to an existing instance.
DynamicObject
  instance : Object
[read-only] The actual managed instance.
DynamicObject
Public Methods
 MethodDefined By
  
remove():void
Removes this object from the Context.
DynamicObject
Property Detail
contextproperty
context:Context  [read-only]

The Context that managed this object.


Implementation
    public function get context():Context
definitionproperty 
definition:DynamicObjectDefinition  [read-only]

The definition the object was created from or the definition that was applied to an existing instance.


Implementation
    public function get definition():DynamicObjectDefinition
instanceproperty 
instance:Object  [read-only]

The actual managed instance.


Implementation
    public function get instance():Object
Method Detail
remove()method
public function remove():void

Removes this object from the Context. This will lead to the regular lifecycle events for objects that are destroyed like calling the method marked with [Destroy] on the removed instance. After removal the instance does no longer take part in the messaging system of the Context.