Packageorg.spicefactory.parsley.core.builder.instantiator
Classpublic class ConstructorInstantiator
InheritanceConstructorInstantiator Inheritance Object
Implements ObjectInstantiator

Default ObjectInstantiator implementation that provides a new instance by invoking its constructor, potentially resolving references to other objects in the Context for the constructor arguments.



Public Methods
 MethodDefined By
  
ConstructorInstantiator(unresolvedParams:Array)
Creates a new instantiator instance.
ConstructorInstantiator
  
instantiate(target:ManagedObject):Object
Creates a new instance.
ConstructorInstantiator
Constructor Detail
ConstructorInstantiator()Constructor
public function ConstructorInstantiator(unresolvedParams:Array)

Creates a new instantiator instance.

Parameters
unresolvedParams:Array — the unresolved constructor parameters
Method Detail
instantiate()method
public function instantiate(target:ManagedObject):Object

Creates a new instance. The specified ManagedObject instance may be used to resolve dependencies for the new object.

Parameters

target:ManagedObject — the target that will hold the new instance

Returns
Object — a new instance