Re: Interfaces, implementations and circular dependencies

2012-01-07 Thread Stephen Connolly
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

Interfaces, implementations and circular dependencies

2012-01-06 Thread oweijr oweirj
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