public abstract class ServiceProxy extends Object implements org.aopalliance.intercept.MethodInterceptor
| Modifier and Type | Field and Description |
|---|---|
protected ClassLoader |
serviceClassLoader |
| Constructor and Description |
|---|
ServiceProxy(ClassLoader serviceClassLoader) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doCatch(org.aopalliance.intercept.MethodInvocation invocation,
Throwable e,
long startTime) |
protected abstract void |
doFinally(org.aopalliance.intercept.MethodInvocation invocation,
long startTime) |
protected abstract Object |
doInvoke(org.aopalliance.intercept.MethodInvocation invocation) |
protected String |
getCommonInvocationLog(String start,
org.aopalliance.intercept.MethodInvocation invocation,
long startTime) |
ClassLoader |
getServiceClassLoader() |
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
protected void |
popThreadContextClassLoader(ClassLoader tcl) |
protected void |
pushThreadContextClassLoader(ClassLoader newContextClassLoader) |
protected ClassLoader serviceClassLoader
public ServiceProxy(ClassLoader serviceClassLoader)
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
invoke in interface org.aopalliance.intercept.MethodInterceptorThrowableprotected void pushThreadContextClassLoader(ClassLoader newContextClassLoader)
protected void popThreadContextClassLoader(ClassLoader tcl)
protected String getCommonInvocationLog(String start, org.aopalliance.intercept.MethodInvocation invocation, long startTime)
public ClassLoader getServiceClassLoader()
protected abstract Object doInvoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
Throwableprotected abstract void doCatch(org.aopalliance.intercept.MethodInvocation invocation,
Throwable e,
long startTime)
protected abstract void doFinally(org.aopalliance.intercept.MethodInvocation invocation,
long startTime)
Copyright © 2021. All rights reserved.