Announcement Announcement Module
Collapse
No announcement yet.
How to cope with Autowire and var. Implementations of an Interface? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to cope with Autowire and var. Implementations of an Interface?

    Hi all

    Consider this file structure:
    Code:
    -businessobjects
       \-User.java
    -dao
       \-IUserDAO.java
    -daojpa
       \-UserDAO.java
    -daohibernate
       \-UserDAO.java
    As you can see, both implementations of IUserDAO have the same name and, of course, the same type. How can I make sure, that annotation driven @Autowire will make use of the one I want (e.g. daojpa)?

    Thanks
    Alo
Working...
X