I'm not seeing how to handle the following situation.

I have a AbstractService bean with the following protected object

public abstract class AbstractService <T extends CoreEntity<ID>, ID
extends Serializable> implements CoreService<T, ID> {
    protected CoreDAO<T, ID> dao;

        @Inject
        public void setDao(final CoreDAO<T, ID> dao) {
                this.dao = dao;
        }

        ... Methods that use the dao ...
}

public class UserServiceImpl extends AbstractService<User, Integer>
implements UserService {
}
public class TopicServiceImpl extends AbstractService<Topic, Integer>
implements TopicService {
}

Now how do I tell Guice to use UserJPADAO.class for the
UserServiceImpl and TopicJPADAO.class for TopicServiceImpl?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to