Aspect Oriented Programming with Spring AspectJ and Maven | Java Code Geeks
Nevertheless Spring AOP framework comes with certain limitations in comparison to a complete AOP implementation, such as AspectJ. The most common problems people encounter while working with Spring AOP framework derive from the fact that Spring AOP is "proxy – based". In other words when a bean is used as a dependency and its method(s) should be advised by particular aspect(s) the IoC container injects an "aspect – aware" bean proxy instead of the bean itself. Method invocations are performed against the proxy bean instance, transparently to the user, in order for aspect logic to be executed before and/or after delegating the call to the actual "proxy–ed" bean.
Read full article from Aspect Oriented Programming with Spring AspectJ and Maven | Java Code Geeks
No comments:
Post a Comment