I really liked the Dao with the AbstractDao<T> introduced in chapter 2 to reduce common crud operations code.
How would i implement this in my service layer?
I created an interface AbstractService<T extends Object> with the same methods as the AbstractDao class.
I am trying to create an abstract class like
public abstract class AbstractServiceImpl<T extends Object> implements AbstractService<T>
How can I autowire my dao classes into this class based on the object?
|