执行器动态代理对象,拦截非业务方法的执行
This commit is contained in:
parent
ee1e32ddf3
commit
87442a5c59
|
@ -1024,6 +1024,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段
|
|||
- 3、修复任务监控线程被耗时任务阻塞的问题;
|
||||
- 4、修复任务监控线程无法监控任务触发和执行状态均未0的问题;
|
||||
- 5、调度中心项目日志配置改为xml文件格式;
|
||||
- 6、执行器动态代理对象,拦截非业务方法的执行;
|
||||
|
||||
### TODO LIST
|
||||
- 1、任务权限管理:执行器为粒度分配权限,核心操作校验权限;
|
||||
|
|
|
@ -37,6 +37,12 @@ public class NetComClientProxy implements FactoryBean<Object> {
|
|||
@Override
|
||||
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
|
||||
|
||||
// filter method like "Object.toString()"
|
||||
if (Object.class.getName().equals(method.getDeclaringClass().getName())) {
|
||||
logger.error(">>>>>>>>>>> xxl-rpc proxy class-method not support [{}.{}]", method.getDeclaringClass().getName(), method.getName());
|
||||
throw new RuntimeException("xxl-rpc proxy class-method not support");
|
||||
}
|
||||
|
||||
// request
|
||||
RpcRequest request = new RpcRequest();
|
||||
request.setServerAddress(serverAddress);
|
||||
|
|
Loading…
Reference in New Issue