Package org.asmatron.messengine.annotations

Examples of org.asmatron.messengine.annotations.ActionMethod


    controlEngine.addActionHandler(actionType, actionHandler);
  }

  private void addActionMethodHandler(Object object, Method method) {
    checkControlEngine();
    ActionMethod annotation = method.getAnnotation(ActionMethod.class);
    ActionId<ActionObject> actionType = ActionId.cm(annotation.value());
    ActionMethodHandler actionHandler = new ActionMethodHandler(object, method);
    controlEngine.addActionHandler(actionType, actionHandler);
  }
View Full Code Here


    controlEngine.removeActionHandler(actionType);
  }

  private void removeActionMethodHandler(Object object, Method method) {
    checkControlEngine();
    ActionMethod annotation = method.getAnnotation(ActionMethod.class);
    ActionId<ActionObject> actionType = ActionId.cm(annotation.value());
    controlEngine.removeActionHandler(actionType);
  }
View Full Code Here

TOP

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

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.