the standard java way to solve this is the service loader pattern.
java 6 has explicit support in the serviceloader class, but it is easy to
use classloader.getResources(...) note that's a plural, to roll your own if
you need to support java 5 or earlier.
basically the factory looks for files
I have a set of interfaces and then multiple
implementations of the interfaces. Only one implementation is used in a
given instance of the application.
I'm trying to create separate
projects for the common interface and each of the implementations.
However, the problem I have is that in order