|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2018 the original author or authors. |
|
|
|
* Copyright 2002-2020 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. |
|
|
|
@ -71,11 +71,11 @@ public final class ExposeInvocationInterceptor implements MethodInterceptor, Pri |
|
|
|
MethodInvocation mi = invocation.get(); |
|
|
|
MethodInvocation mi = invocation.get(); |
|
|
|
if (mi == null) { |
|
|
|
if (mi == null) { |
|
|
|
throw new IllegalStateException( |
|
|
|
throw new IllegalStateException( |
|
|
|
"No MethodInvocation found: Check that an AOP invocation is in progress, and that the " + |
|
|
|
"No MethodInvocation found: Check that an AOP invocation is in progress and that the " + |
|
|
|
"ExposeInvocationInterceptor is upfront in the interceptor chain. Specifically, note that " + |
|
|
|
"ExposeInvocationInterceptor is upfront in the interceptor chain. Specifically, note that " + |
|
|
|
"advices with order HIGHEST_PRECEDENCE will execute before ExposeInvocationInterceptor! " + |
|
|
|
"advices with order HIGHEST_PRECEDENCE will execute before ExposeInvocationInterceptor! " + |
|
|
|
"Check that ExposeInvocationInterceptor and ExposeInvocationInterceptor.currentInvocation() " + |
|
|
|
"In addition, ExposeInvocationInterceptor and ExposeInvocationInterceptor.currentInvocation() " + |
|
|
|
"invoke in one Thread"); |
|
|
|
"must be invoked from the same thread."); |
|
|
|
} |
|
|
|
} |
|
|
|
return mi; |
|
|
|
return mi; |
|
|
|
} |
|
|
|
} |
|
|
|
|