Package org.dromara.sms4j.core.proxy
Class SmsInvocationHandler
- java.lang.Object
-
- org.dromara.sms4j.core.proxy.SmsInvocationHandler
-
- All Implemented Interfaces:
InvocationHandler
public class SmsInvocationHandler extends Object implements InvocationHandler
SmsBlend增强,封装smsblend和执行器- Since:
- 2023/10/27 13:03
- Author:
- sh1yu
-
-
Constructor Summary
Constructors Constructor Description SmsInvocationHandler(SmsBlend smsBlend)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoErrorHandleProcess(Object o, Method method, Object[] objects, Exception e)异常执行器ObjectdoPostrocess(Object o, Method method, Object[] objects, Object result)后置执行器Object[]doPreProcess(Object o, Method method, Object[] objects)前置执行器Objectinvoke(Object o, Method method, Object[] objects)
-
-
-
Field Detail
-
smsBlend
private final SmsBlend smsBlend
-
-
Constructor Detail
-
SmsInvocationHandler
public SmsInvocationHandler(SmsBlend smsBlend)
-
-
Method Detail
-
invoke
public Object invoke(Object o, Method method, Object[] objects)
- Specified by:
invokein interfaceInvocationHandler
-
doErrorHandleProcess
public void doErrorHandleProcess(Object o, Method method, Object[] objects, Exception e) throws RuntimeException
异常执行器- Throws:
RuntimeException
-
-