I have many ObjectFactory classes that reside in different packages. They are all standalone classes, meaning that they don't extend from any class. I cannot modify those classes.
Now, I need to provide an ObjectFactory to a command-handler class. This ObjectFactory must have a set of methods needed for this exact command-handler class.
How would I go on about scanning all the ObjectFactory classes from different packages to find one with the methods that I need?
Thank you in advance
Aucun commentaire:
Enregistrer un commentaire