I have a interface DAO<T>
, and a Generic implementation of it (GenericDAO<T> implements DAO<T>
).
I'll like to do something like this:
public interface UserDao extends Dao<User> {
// code
}
// module
bind(UserDao.class).to(GenericDao.class);
Is it possible? I managed to work a inject of Dao to GenericDao automagically (I didnt create the specific userdao implementation), but, can't get this working...