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
 InheritedconstructorArgs : ConstructorArgRegistry
[read-only]
AbstractObjectDefinition
 InheriteddestroyMethod : String
The method to invoke on the configured object before it gets destroyed and removed from the Context.
AbstractObjectDefinition
 Inheritedfrozen : Boolean
[read-only] Indicates whether this definition has been frozen.
AbstractObjectDefinition
 Inheritedid : String
[read-only]
AbstractObjectDefinition
 InheritedinitMethod : String
The method to invoke on the configured object after it has been fully initialized.
AbstractObjectDefinition
 InheritedinjectorMethods : MethodRegistry
[read-only]
AbstractObjectDefinition
 Inheritedinstantiator : ObjectInstantiator
The object responsible for creating instances from this definition.
AbstractObjectDefinition
 InheritedobjectLifecycle : LifecycleListenerRegistry
[read-only]
AbstractObjectDefinition
 InheritedprocessorFactories : Array
[read-only] Returns all processor factories added to this instance.
AbstractObjectDefinition
 Inheritedproperties : PropertyRegistry
[read-only]
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 factory to this definition.
AbstractObjectDefinition
  
Creates a copy of this definition wrapping the existing instance.
DefaultDynamicObjectDefinition
 Inherited
freeze():void
Freezes this object definition.
AbstractObjectDefinition
 Inherited
Populates this definition with all configuration artifacts from the specified source.
AbstractObjectDefinition
Constructor Detail
DefaultDynamicObjectDefinition()Constructor
public function DefaultDynamicObjectDefinition(type:ClassInfo, id:String, registry:ObjectDefinitionRegistry, parent:ObjectDefinition = null)

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
 
parent:ObjectDefinition (default = null) — the parent definition containing shared configuration for this definition
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