
|
If you were logged in you would be able to see more operations.
|
|
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
|
| Build: |
7,294
|
| Fixed in build: |
7,513
|
Spring AOP has two proxying modes:
- "default" (JDK interface proxy if possible, fallback to CGLIB subclass proxy if not)
- when the target bean class implements one or more interfaces, a JDK dynamic proxy is created, intercepting calls only to methods defined on the interface(s).
- when the target bean class does not implement any interfaces, a CGLIB subclass proxy is created, intercepting calls to all class methods
- "forced-cglib"
- If any of the elements (<tx:annotation-driven>, <aop:config>, <aop:aspectj-autoproxy>) present in the current ApplicationContext has a proxy-target-class="true" attribute, CGLIB subclass proxies will be forced for all advised beans. IDEA should look in the current fileset (but not the parent fileset) to see if an element forcing proxy-target-class is present.
Observed behavior: IDEA seems to match all methods from the bean class.
It would be nice if the proxy type for a given bean was part of the AOP model: I think it can affect evaluation of this() pointcut designator.
|
|
Description
|
Spring AOP has two proxying modes:
- "default" (JDK interface proxy if possible, fallback to CGLIB subclass proxy if not)
- when the target bean class implements one or more interfaces, a JDK dynamic proxy is created, intercepting calls only to methods defined on the interface(s).
- when the target bean class does not implement any interfaces, a CGLIB subclass proxy is created, intercepting calls to all class methods
- "forced-cglib"
- If any of the elements (<tx:annotation-driven>, <aop:config>, <aop:aspectj-autoproxy>) present in the current ApplicationContext has a proxy-target-class="true" attribute, CGLIB subclass proxies will be forced for all advised beans. IDEA should look in the current fileset (but not the parent fileset) to see if an element forcing proxy-target-class is present.
Observed behavior: IDEA seems to match all methods from the bean class.
It would be nice if the proxy type for a given bean was part of the AOP model: I think it can affect evaluation of this() pointcut designator. |
Show » |
|
I'll create a separate issue for this() details.