Class: Factory

binding.Factory(…args) → {T}

new Factory(…args) → {T}

This factory creates instances of type T, by invoking the #new() method
or by instantiating this factory directly

Parameters:
Name Type Attributes Description
args * <repeatable>

constructor params passed to the type constructor

Source:
Returns:

The new instance

Type
T

Methods

new(…args) → {T}

Creates a new instance of the factory type

Parameters:
Name Type Attributes Description
args * <repeatable>

Constructor arguments used for instantiation

Source:
Returns:

A new created instance of *

Type
T

newInstance(argsopt) → {T}

Creates a new instance of the factory type

Parameters:
Name Type Attributes Description
args Array.<*> <optional>

Constructor arguments used for instantiation

Source:
Returns:

A new created instance of *

Type
T