3、y = null; 4. boolean setProxyContext = false; 5. 6. TargetSource targetSource = this.advised.targetSource; 7. Class targetClass = null; 8. Object target = null; 9. 10. try { 11. // Try special rules for equals() method and implementation of the 12. //
4、 Advised AOP configuration interface. 13. 14. if (!this.equalsDefined && AopUtils.isEqualsMethod(method)) { 15. // What if equals throws exception!? 16. // This class implements the equals(Object) method itself. 17. return equals(args[0]) ? Boo
5、lean.TRUE : Boolean.FALSE; 18. } 19. if (!this.hashCodeDefined && AopUtils.isHashCodeMethod(method)) { 20. // This class implements the hashCode() method itself. 21. return new Integer(hashCode()); 22. } 23. if (Advised.class == meth
6、od.getDeclaringClass()) { 24. // service invocations on ProxyConfig with the proxy config 25. return AopUtils.invokeJoinpointUsingReflection(this.advised, method, args); 26. } 27. 28. Object retVal = null; 29. 30. if (this.advised.exposePr
7、oxy) { 1. // make invocation available if necessary 2. oldProxy = AopContext.setCurrentProxy(proxy); 3. setProxyContext = true; 4. } 5. 6. // May be null. Get as late as possible to minimize the time