class XxxListener implements AListener,BListener...{ } All listener interfaces extends from a center type when we got a listener instance, then loop all it's interfaces and cache them when publish event, get listener instance from cache and invoke
2018-05-13 10:07 GMT+08:00 Willem Jiang <willem.ji...@gmail.com>: > +1 for the performance enhancement. > If it make sense we could let the event listener to subscribe a center type > of event. > My question is how can we describe the event that the listener is > interested? > > > > Willem Jiang > > Blog: http://willemjiang.blogspot.com (English) > http://jnn.iteye.com (Chinese) > Twitter: willemjiang > Weibo: 姜宁willem > > On Sat, May 12, 2018 at 4:31 PM, wjm wjm <zzz...@gmail.com> wrote: > > > currently we publish invocation start/startProcess/finish event for every > > invocation > > now event based on guava EventBus > > it's easy to use. > > > > but EventBus based on reflection, performance is not the best. > > in the furture maybe we will add more invocaiton event, and more module > > will subscribe invocation event. > > > > so i want to publish invocation event, change from EventBus event to > event > > listener loaded by SPI. > > > > what's you suggestion? > > >