Packageorg.spicefactory.parsley.core.builder.instantiator
Classpublic class ObjectWrapperInstantiator
InheritanceObjectWrapperInstantiator Inheritance Object
Implements ContainerObjectInstantiator

ObjectInstantiator implementation that wraps an existing instance. Also implements the ContainerObjectInstantiator marker interface since such an instantiator usually cannot be overridden by other configuration artifacts.



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

Creates a new instantiator instance.

Parameters
instance:Object — the existing instance to wrap
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