public interface InstanceMethodsAroundInterceptor
ClassEnhancePluginDefine's subclass, most likely in ClassInstanceMethodsEnhancePluginDefine| Modifier and Type | Method and Description |
|---|---|
Object |
afterMethod(EnhancedInstance objInst,
Method method,
Object[] allArguments,
Class<?>[] argumentsTypes,
Object ret)
called after target method invocation.
|
void |
beforeMethod(EnhancedInstance objInst,
Method method,
Object[] allArguments,
Class<?>[] argumentsTypes,
MethodInterceptResult result)
called before target method invocation.
|
void |
handleMethodException(EnhancedInstance objInst,
Method method,
Object[] allArguments,
Class<?>[] argumentsTypes,
Throwable t)
called when occur exception.
|
void beforeMethod(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, MethodInterceptResult result) throws Throwable
result - change this result, if you want to truncate the method.ThrowableObject afterMethod(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, Object ret) throws Throwable
method - ret - the method's original return value.Throwablevoid handleMethodException(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, Throwable t)
method - t - the exception occur.Copyright © 2019 The Apache Software Foundation. All rights reserved.