Skip to content

Instantly share code, notes, and snippets.



Created Dec 9, 2010
What would you like to do?
public interface Dao {}
public class JpaDao implements Dao {}
public class ProductService {
private Dao dao;
public ProductService(Dao dao){
this.dao = dao;
new ProductService(new JpaDao());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment