|
|
|
|
|
by rymndhng
4425 days ago
|
|
It depends. One thing that I thought is an interesting feature of Spring, is that it allows the framework to inject code between your dependencies like decorators. This allows them to do aspect-oriented-programming transparently. And I think there's some interesting ideas here. For example, you can mark the interface of a class as @Transactional, and all your implementations will get the behavior. |
|
The IoC container will return transparent proxy(Not the original object), which then calls the underlying method(after doing the AOP behaviour).