ConstructorObjectFactory handles constructors with int parameters