Spring 3 DI using generic DAO interface
- by Peders
I'm trying to use @Autowired annotation with my generic Dao interface like this:
public interface DaoContainer<E extends DomainObject> {
public int numberOfItems();
// Other methods omitted for brevity
}
I use this interface in my Controller in following fashion:
@Configurable
public class HelloWorld {
@Autowired
private…