Package org.asmatron.messengine.annotations

Examples of org.asmatron.messengine.annotations.MessageMethod


    return messageMethods.size() + count;
  }

  private void addMessageMethodHandler(Object object, Method method) {
    checkMessEngine();
    MessageMethod annotation = method.getAnnotation(MessageMethod.class);
    MessageMethodListener listener = new MessageMethodListener(object, method);
    String id = annotation.value();
    messEngine.addMessageListener(id, listener);
  }
View Full Code Here


    messEngine.addMessageListener(id, listener);
  }

  private void removeMessageMethodHandler(Object object, Method method) {
    checkMessEngine();
    MessageMethod annotation = method.getAnnotation(MessageMethod.class);
    MessageMethodListener listener = new MessageMethodListener(object, method);
    String id = annotation.value();
    messEngine.removeMessageListener(id, listener);
  }
View Full Code Here

TOP

Related Classes of org.asmatron.messengine.annotations.MessageMethod

Copyright © 2018 www.massapicom. 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.