Package org.asmatron.messengine.annotations

Examples of org.asmatron.messengine.annotations.EventMethod.eager()


  private void addEventMethodHandler(Object object, Method method) {
    checkViewEngine();
    EventMethod annotation = method.getAnnotation(EventMethod.class);
    String id = annotation.value();
    EventId<EventObject> eventType = EventId.ev(id);
    EventMethodListener listener = new EventMethodListener(object, method, annotation.mode(), annotation.eager());
    viewEngine.addListener(eventType, listener);
  }

  private void removeEventMethodHandler(Object object, Method method) {
    checkViewEngine();
View Full Code Here


  private void removeEventMethodHandler(Object object, Method method) {
    checkViewEngine();
    EventMethod annotation = method.getAnnotation(EventMethod.class);
    String id = annotation.value();
    EventId<EventObject> eventType = EventId.ev(id);
    EventMethodListener listener = new EventMethodListener(object, method, annotation.mode(), annotation.eager());
    viewEngine.removeListener(eventType, listener);
  }

  private void checkViewEngine() {
    if (viewEngine == null) {
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.