Package org.asmatron.messengine.annotations

Examples of org.asmatron.messengine.annotations.RequestMethod


    controlEngine.addActionHandler(actionType, actionHandler);
  }

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


    controlEngine.removeActionHandler(actionType);
  }

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

TOP

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

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.