Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cglib2AopProxy非空判断 #14

Open
square-knight opened this issue Mar 1, 2018 · 0 comments
Open

Cglib2AopProxy非空判断 #14

square-knight opened this issue Mar 1, 2018 · 0 comments

Comments

@square-knight
Copy link

	@Override
	public Object intercept(Object obj, Method method, Object[] args, MethodProxy proxy) throws Throwable {
		if (advised.getMethodMatcher() == null
				|| advised.getMethodMatcher().matches(method, advised.getTargetSource().getTargetClass())) {//这个地方是应该作非空判断的吧?
			return delegateMethodInterceptor.invoke(new CglibMethodInvocation(advised.getTargetSource().getTarget(), method, args, proxy));
		}
		return new CglibMethodInvocation(advised.getTargetSource().getTarget(), method, args, proxy).proceed();
	}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant