用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)之类的验证

你可能感兴趣的:(jFinal)