Package org.focusns.common.event.annotation

Examples of org.focusns.common.event.annotation.Event.async()


            //
            Executor executor = getTaskExecutor();
            final EventContext eventContext = (EventContext) appEvent;
            Event event = eventContext.getEventHandler().getAnnotation(Event.class);
            //
            if (event.async()) {
                getTaskExecutor().execute(new Runnable() {
                    @Override
                    public void run() {
                        eventListener.onApplicationEvent(eventContext);
                    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.