title: Choose between Interface Implementations with spring applicationContext?
body: <p>I'm using Eclipse Juno IDE and phpMyAdmin. </p>
  
  <p>I have java application, for this application I created a DB in phpMyAdmin. 
  Now, I have an interface for the DB methods.. 
  Lets say the interface is like that:</p>
  
  <pre><code>public interface DBInterface{
    public Vector&lt;Employees&gt; getAllEmplyess();
    public void addNewEmployee(int ID, String name,String department);
  }
  </code></pre>
  
  <p>Now I need to implements this interface in two ways:</p>
  
  <p>1) JPA</p>
  
  <p>2) JDBC</p>
  
  <p>Lets say that I implemented the interface in the two ways mentioned above. </p>
  
  <p>How can I choose between the with the spring mechanism in the applicationContext.xml file?
  How does it work?</p>