Function FactoryMethodBasedFactory.factory

See InstanceFactory interface

Z factory ();

Throws

InvalidCastException when extracted data by reference, is not of type expected by argument factory's method, or when factory is referenced, and the object referenced in locator is not of factory's type T.

Returns

Z created object