Package | Description |
---|---|
com.forte.qqrobot.intercept |
拦截器包,部分AOP接口
|
com.forte.qqrobot.listener | |
com.forte.qqrobot.sender.intercept |
Modifier and Type | Method and Description |
---|---|
default int |
Interceptor.compareTo(Interceptor other)
实现的排序方法。
无特殊需求请不要重写此方法。
|
Modifier and Type | Interface and Description |
---|---|
interface |
MsgIntercept
消息拦截接口
|
Modifier and Type | Interface and Description |
---|---|
interface |
SenderGetIntercept |
interface |
SenderIntercept<S extends SenderList,C extends SenderContext<S>>
送信器拦截器,用于拦截所有送信器的执行流程
应当存在三个子接口对应三种拦截:Send、Set、Get
※注意事项:当返回值为false的时候,代表拦截操作,不执行原方法以及后续拦截,此时会抛出一个异常: |
interface |
SenderSendIntercept |
interface |
SenderSetIntercept |
Modifier and Type | Method and Description |
---|---|
static <S extends SenderList> |
SenderInterceptFactory.doIntercept(Class<? extends S> type,
S sender,
BiFunction<S,Object[],SenderContext<? extends S>> contextGetter,
Interceptor[] intercepts)
送信器代理
|
Copyright © 2020. All rights reserved.