Hey Ranchers!
I have the following situation:
I have some dozen classes implementing a common interface, all in the same package. Now, I need one instance of every class and add it to a list. It would require a lot of work to do this by hand, and I would have to change this method every time I add or remove classes.
Is there any way to have this done automatically?
I have the following situation:
I have some dozen classes implementing a common interface, all in the same package. Now, I need one instance of every class and add it to a list. It would require a lot of work to do this by hand, and I would have to change this method every time I add or remove classes.
Is there any way to have this done automatically?