PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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