用JFinal有一段时间了,做了一些扩展

jfinal-ext-rich,放在github上(https://github.com/richxnh/jfinal-ext-rich),主要有以下功能:

DisruptorPlugin
基于LMAX Disruptor的扩展,用于异步并发事件编程
用法:
MyConfig中
DisruptorPlugin disruptorPlugin = new DisruptorPlugin(1024);
disruptorPlugin.register(BlogService.class);
me.add(disruptorPlugin);

BlogService中
@Subscribe("saveMe")
public void saveBlog(Blog blog){
}

BlogController中
DisruptorKit.post("saveMe", blog);
==================================================================
RedisPlugin
基于Redis的扩展,jfinal官方的没出来,就自己先弄个勉强用着
==================================================================
ZmqPlugin
基于ZeroMQ的扩展
==================================================================
InjectInterceptor
虽然有SprintPlugin,但依赖的包太多了,所以自己弄了个简单的代替
==================================================================
Validator
重写了Validator,主要加上对validateRequired(int index, String errorKey, String errorMessage)之类的验证

转载于:https://my.oschina.net/u/203952/blog/127181

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值