/gwtp-extension/src/test/java/com/googlecode/gwtrpccommlayer/gwtp/test/THandler.java

https://code.google.com/p/gwtrpccommlayer/ · Java · 27 lines · 17 code · 4 blank · 6 comment · 0 complexity · 8afc22107259a8c5d706e69eea7e6da0 MD5 · raw file

  1. package com.googlecode.gwtrpccommlayer.gwtp.test;
  2. import com.gwtplatform.dispatch.server.ExecutionContext;
  3. import com.gwtplatform.dispatch.server.actionhandler.ActionHandler;
  4. import com.gwtplatform.dispatch.shared.ActionException;
  5. /**
  6. * Created by IntelliJ IDEA.
  7. * User: dan
  8. * Date: 11/16/10
  9. * Time: 8:13 PM
  10. */
  11. public class THandler implements ActionHandler<TAction,TResult> {
  12. @Override
  13. public TResult execute(TAction testAction, ExecutionContext executionContext) throws ActionException {
  14. return new TResult();
  15. }
  16. @Override
  17. public Class<TAction> getActionType() {
  18. return TAction.class;
  19. }
  20. @Override
  21. public void undo(TAction testAction, TResult tResult, ExecutionContext executionContext) throws ActionException {
  22. }
  23. }