Package | org.spicefactory.parsley.core.context.impl |
Class | public class DefaultDynamicObject |
Inheritance | DefaultDynamicObject Object |
Implements | DynamicObject |
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
DefaultDynamicObject(context:DefaultContext, definition:DynamicObjectDefinition, instance:Object = null)
Creates a new instance. | DefaultDynamicObject | ||
remove():void
Removes this object from the Context. | DefaultDynamicObject |
context | property |
context:Context
[read-only] The dynamic Context this instance belongs to.
public function get context():Context
definition | property |
definition:DynamicObjectDefinition
[read-only] The definition the object was created from or the definition that was applied to an existing instance.
public function get definition():DynamicObjectDefinition
instance | property |
instance:Object
[read-only] The actual managed instance.
public function get instance():Object
DefaultDynamicObject | () | Constructor |
public function DefaultDynamicObject(context:DefaultContext, definition:DynamicObjectDefinition, instance:Object = null)
Creates a new instance.
Parameterscontext: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
|
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.