public final class ServiceInvocationAdvice extends Object implements org.aopalliance.intercept.MethodInterceptor, org.springframework.core.Ordered
| Constructor and Description |
|---|
ServiceInvocationAdvice(Object serviceBean,
Class<?> serviceClass,
ServiceCallInterceptorGroup[] serviceCallInterceptorGroupSupported,
ClassLoader serviceClassLoader) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
afterInvocation(Method interfaceMethod,
Object result,
Exception t,
Object... args) |
protected void |
beforeInvocation(Method interfaceMethod,
Object... args) |
protected org.apache.commons.lang3.tuple.Pair<ExceptionType,String> |
getExceptionDetailAndType(Exception ex) |
protected String |
getExceptionMessage(Method method,
Throwable ex,
Object... args) |
int |
getOrder() |
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
protected Object |
serviceExtraMethodInvoke(Method interfaceMethod,
Object serviceBean,
Object... args) |
public ServiceInvocationAdvice(Object serviceBean, Class<?> serviceClass, ServiceCallInterceptorGroup[] serviceCallInterceptorGroupSupported, ClassLoader serviceClassLoader)
protected void beforeInvocation(Method interfaceMethod, Object... args) throws Throwable
Throwableprotected Object serviceExtraMethodInvoke(Method interfaceMethod, Object serviceBean, Object... args) throws Throwable
Throwableprotected Object afterInvocation(Method interfaceMethod, Object result, Exception t, Object... args) throws Throwable
Throwablepublic Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
invoke in interface org.aopalliance.intercept.MethodInterceptorThrowableprotected org.apache.commons.lang3.tuple.Pair<ExceptionType,String> getExceptionDetailAndType(Exception ex)
protected String getExceptionMessage(Method method, Throwable ex, Object... args)
public int getOrder()
getOrder in interface org.springframework.core.OrderedCopyright © 2004–2019 OpenL Tablets. All rights reserved.