3 ms·
Sometimes it's necessary to use interfaces in java even if you will just have one implementation. AOP and proxy creation requires this in some cases. IDE suppo
by jontro 12y ago
Sometimes it's necessary to use interfaces in java even if you will just have one implementation. AOP and proxy creation requires this in some cases.
IDE support for this is great so you do not have to type it twice.
- chriswarbo 12y agoI think the point is to use interfaces where necessary, but not where unnecessary. If proxying/AOP/etc. require interfaces, then use interfaces (or don't use proxying/AOP/etc.; the same argument can be applied there too!)