polishing
This commit is contained in:
parent
296aa96d71
commit
26470cc23a
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2006 the original author or authors.
|
* Copyright 2002-2010 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -58,18 +58,13 @@ class InstantiationModelAwarePointcutAdvisorImpl
|
||||||
|
|
||||||
private String aspectName;
|
private String aspectName;
|
||||||
|
|
||||||
private Boolean isBeforeAdvice = null;
|
private Boolean isBeforeAdvice;
|
||||||
|
|
||||||
private Boolean isAfterAdvice = null;
|
private Boolean isAfterAdvice;
|
||||||
|
|
||||||
|
|
||||||
public InstantiationModelAwarePointcutAdvisorImpl(
|
public InstantiationModelAwarePointcutAdvisorImpl(AspectJAdvisorFactory af, AspectJExpressionPointcut ajexp,
|
||||||
AspectJAdvisorFactory af,
|
MetadataAwareAspectInstanceFactory aif, Method method, int declarationOrderInAspect, String aspectName) {
|
||||||
AspectJExpressionPointcut ajexp,
|
|
||||||
MetadataAwareAspectInstanceFactory aif,
|
|
||||||
Method method,
|
|
||||||
int declarationOrderInAspect,
|
|
||||||
String aspectName) {
|
|
||||||
|
|
||||||
this.declaredPointcut = ajexp;
|
this.declaredPointcut = ajexp;
|
||||||
this.method = method;
|
this.method = method;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2009 the original author or authors.
|
* Copyright 2002-2010 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -146,7 +146,7 @@ final class JdkDynamicAopProxy implements AopProxy, InvocationHandler, Serializa
|
||||||
* unless a hook method throws an exception.
|
* unless a hook method throws an exception.
|
||||||
*/
|
*/
|
||||||
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
|
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
|
||||||
MethodInvocation invocation = null;
|
MethodInvocation invocation;
|
||||||
Object oldProxy = null;
|
Object oldProxy = null;
|
||||||
boolean setProxyContext = false;
|
boolean setProxyContext = false;
|
||||||
|
|
||||||
|
|
@ -169,7 +169,7 @@ final class JdkDynamicAopProxy implements AopProxy, InvocationHandler, Serializa
|
||||||
return AopUtils.invokeJoinpointUsingReflection(this.advised, method, args);
|
return AopUtils.invokeJoinpointUsingReflection(this.advised, method, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
Object retVal = null;
|
Object retVal;
|
||||||
|
|
||||||
if (this.advised.exposeProxy) {
|
if (this.advised.exposeProxy) {
|
||||||
// Make invocation available if necessary.
|
// Make invocation available if necessary.
|
||||||
|
|
@ -239,7 +239,7 @@ final class JdkDynamicAopProxy implements AopProxy, InvocationHandler, Serializa
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
JdkDynamicAopProxy otherProxy = null;
|
JdkDynamicAopProxy otherProxy;
|
||||||
if (other instanceof JdkDynamicAopProxy) {
|
if (other instanceof JdkDynamicAopProxy) {
|
||||||
otherProxy = (JdkDynamicAopProxy) other;
|
otherProxy = (JdkDynamicAopProxy) other;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue