Registers the given factory of the given type to this factory provider.
the factory type
the class of the type
the factory to register
if the factory is already registered