How does AOP works internally in Spring




Asked on March 23, 2014
Hi All,

How does AOP works internally in Spring?



Replied on April 02, 2014
AOP is aspect oriented programming. What it does is it wraps the original object by a proxy object and that proxy object is injected into user classes as dependency injection. In spring programing, it will look like that we are working with original object but it is not right. We work with proxy object. The proxy object is created using java.lang.reflect.InvocationHandler and java.lang.reflect.Proxy.  Click here to read more about creating proxy object in java.  


Write Answer










©2024 concretepage.com | Privacy Policy | Contact Us