Packagesystem.ioc.strategies
Classpublic class ObjectFactoryMethod
InheritanceObjectFactoryMethod Inheritance ObjectMethod Inheritance Object
Implements IObjectFactoryStrategy

This object create a delegate factory configured in the IObjectDefinition and replace the natural factory of the ObjectFactory.



Public Properties
 PropertyDefined By
 Inheritedarguments : Array
The array of the arguments to passed-in the factory method.
ObjectMethod
  factory : String
The factory string representation of the reference of this factory method object.
ObjectFactoryMethod
 Inheritedname : String
The name of the method to invoke to create the object.
ObjectMethod
Public Methods
 MethodDefined By
  
ObjectFactoryMethod(factory:String, name:String, arguments:Array = null)
Creates a new ObjectFactoryMethod instance.
ObjectFactoryMethod
  
build(o:Object = null):ObjectFactoryMethod
[static] Returns the ObjectFactoryMethod representation of the specified generic object or null.
ObjectFactoryMethod
Property Detail
factoryproperty
public var factory:String

The factory string representation of the reference of this factory method object.

Constructor Detail
ObjectFactoryMethod()Constructor
public function ObjectFactoryMethod(factory:String, name:String, arguments:Array = null)

Creates a new ObjectFactoryMethod instance.

Parameters
factory:String — The string name of the reference in the factory used to create the object.
 
name:String — The name of the method to invoke to create the object.
 
arguments:Array (default = null) — The array of the arguments to passed-in the factory method.
Method Detail
build()method
public static function build(o:Object = null):ObjectFactoryMethod

Returns the ObjectFactoryMethod representation of the specified generic object or null.

Parameters

o:Object (default = null)

Returns
ObjectFactoryMethod — the ObjectFactoryMethod representation of the specified generic object or null.