Packageorg.spicefactory.parsley.core.context.impl
Classpublic class DefaultDynamicObject
InheritanceDefaultDynamicObject Inheritance Object
Implements DynamicObject

Default implementation of the DynamicObject interface.



Public Properties
 PropertyDefined By
  context : Context
[read-only] The dynamic Context this instance belongs to.
DefaultDynamicObject
  definition : DynamicObjectDefinition
[read-only] The definition the object was created from or the definition that was applied to an existing instance.
DefaultDynamicObject
  instance : Object
[read-only] The actual managed instance.
DefaultDynamicObject
Public Methods
 MethodDefined By
  
DefaultDynamicObject(context:DefaultContext, definition:DynamicObjectDefinition, instance:Object = null)
Creates a new instance.
DefaultDynamicObject
  
remove():void
Removes this object from the Context.
DefaultDynamicObject
Property Detail
contextproperty
context:Context  [read-only]

The dynamic Context this instance belongs to.


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
Constructor Detail
DefaultDynamicObject()Constructor
public function DefaultDynamicObject(context:DefaultContext, definition:DynamicObjectDefinition, instance:Object = null)

Creates a new instance.

Parameters
context:DefaultContext — the dynamic Context this instance belongs to
 
definition:DynamicObjectDefinition — the definition that was applied to the instance
 
instance:Object (default = null) — the actual instance that was dynamically added to the Context
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.