JFinal-event事件驱动插件,无任何第三方依赖,小巧玲珑。 JFinal-event自1.0版本之后就没发布过更新新闻。 看到不少朋友在用,特意在此发布下近期版本更新记录! v1.4.0 ~ v1.5.1支持JFinal2.2以上版本(包括2.2) 2017-04-20 v1.5.1 基于rmi的远程Event。 2017-03-22 v1.4.2 更改默认线程池为SingleThreadExecutor,使异步执行有序化。 添加EventThreadFactory,处理异步时的异常避免影响服务请求。 建议: 如果event需要发送大量的异步事件,建议使用自定义线程池。 eventPlugin.threadPool(Executors.newCachedThreadPool(new EventThreadFactory())); 2017-02-15 v1.4.1 添加自定义线程池eventPlugin.threadPool(ExecutorService executorService)方法。 2016-08-19 v1.4.0 升级到JFinal2.2,JFinal低版本用户请使用v1.2.0。 EventKit.postEvent(event)更改为EventKit.post(event),postEvent不再建议使用。 添加EventKit.post(tag, event)方法,@Listener(order = 2, tag = "save")监听对应的tag事件。 Maven引入: <dependency> <groupId>net.dreamlu</groupId> <artifactId>JFinal-event</artifactId> <version>1.5.1</version> </dependency> Jar包下来:http://central.maven.org/maven2/net/dreamlu/JFinal-event/ WIKI文档地址:http://git.oschina.net/596392912/JFinal-event/wikis/home |