Package | Description |
---|---|
com.forte.qqrobot.sender.intercept |
Modifier and Type | Interface and Description |
---|---|
interface |
SenderIntercept<S extends SenderList,C extends SenderContext<S>>
送信器拦截器,用于拦截所有送信器的执行流程
应当存在三个子接口对应三种拦截:Send、Set、Get
※注意事项:当返回值为false的时候,代表拦截操作,不执行原方法以及后续拦截,此时会抛出一个异常: |
Modifier and Type | Class and Description |
---|---|
class |
GetContext |
class |
SendContext
提供一个sender对象
|
class |
SetContext |
Modifier and Type | Method and Description |
---|---|
static <S extends SenderList> |
SenderInterceptFactory.doIntercept(Class<? extends S> type,
S sender,
ExFunction<S,Method,Object[],SenderContext<? extends S>> contextGetter,
Interceptor[] intercepts)
送信器代理
|
Copyright © 2020. All rights reserved.