Packageorg.spicefactory.parsley.core.registry
Interfacepublic interface DynamicObjectDefinition extends ObjectDefinition
Implementors DefaultDynamicObjectDefinition

Represents the configuration for a dynamic object. Such an object can be created and removed from the Context dynamically.



Public Properties
 PropertyDefined By
 Inheritedfrozen : Boolean
[read-only] Indicates whether this definition has been frozen.
ObjectDefinition
 Inheritedid : String
[read-only] The id the object should be registered with.
ObjectDefinition
 Inheritedinstantiator : ObjectInstantiator
The object responsible for creating instances from this definition.
ObjectDefinition
 Inheritedprocessors : Array
[read-only] Returns all processor factories added to this instance.
ObjectDefinition
 Inheritedregistry : ObjectDefinitionRegistry
[read-only] The registry this definition is associated with.
ObjectDefinition
 Inheritedtype : ClassInfo
[read-only] The type of the configured object.
ObjectDefinition
Public Methods
 MethodDefined By
 Inherited
Adds the specified processor to this definition.
ObjectDefinition
  
Creates a copy of this definition wrapping the existing instance.
DynamicObjectDefinition
 Inherited
freeze():void
Freezes this object definition.
ObjectDefinition
 Inherited
getAttribute(key:Object):Object
Returns the attribute for the specified key or null if no such attribute exists.
ObjectDefinition
 Inherited
setAttribute(key:Object, value:Object):void
Sets the attribute for the specified key and value.
ObjectDefinition
Method Detail
copyForInstance()method
public function copyForInstance(instance:Object):DynamicObjectDefinition

Creates a copy of this definition wrapping the existing instance.

Parameters

instance:Object — the instance to wrap

Returns
DynamicObjectDefinition — a new ObjectDefinition wrapping the existing instance