Tagged Questions
3
votes
2answers
146 views
Should I make package private my DAO interfaces?
I have several DAO classes that implement an interface. In the other hand, I have Service classes that use those DAO implementations.
So far all the DAO interfaces are public and I was thinking if ...
0
votes
1answer
2k views
Difference between spring setter and interface injection?
I know how constructor and setter injection works in spring.
Normally I use interfaces instead of classes to inject beans using setter and I consider it as interface injection, but in case of ...
2
votes
1answer
304 views
Why this code create object as interface?
In am reading Spring in Action (3rd edition) and here a snippet from it:
ApplicationContext ctx=new ClassPathXmlApplicationContext("springidol.xml");
Performer ...