Easily switching between two different implementations of a java library?
<p>I am currently working on a project that uses a third party library to manage hardware.</p>

<p>I wish to create a substitute library that presents the same interface, but instead of controlling actual hardware just presents a nice fake GUI. Preferably this can be done just by replacing the jar.</p>

<p>The problem is that all of the third party code is in the namespace <code>edu.edu.wpi.first.wpilibj</code>, and of course the namespace for my library is going to be very different.</p>

<p>Is there any way of easily switching implementations between the two libraries providing the same interface in java?</p>
