new method in reflector interface to add factories