Packageorg.spicefactory.parsley.core.registry.impl
Classpublic class DefaultDynamicObjectDefinition
InheritanceDefaultDynamicObjectDefinition Inheritance AbstractObjectDefinition Inheritance Object
Implements DynamicObjectDefinition

Default implementation of the DynamicObjectDefinition interface.



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

Creates a new instance.

Parameters
type:ClassInfo — the type to create a definition for
 
id:String — the id the object should be registered with
 
registry:ObjectDefinitionRegistry — the registry this definition belongs to
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