THandler.java :  » GWT » gwtrpccommlayer » com » googlecode » gwtrpccommlayer » gwtp » test » Java Open Source

Java Open Source » GWT » gwtrpccommlayer 
gwtrpccommlayer » com » googlecode » gwtrpccommlayer » gwtp » test » THandler.java
package com.googlecode.gwtrpccommlayer.gwtp.test;

import com.gwtplatform.dispatch.server.ExecutionContext;
import com.gwtplatform.dispatch.server.actionhandler.ActionHandler;
import com.gwtplatform.dispatch.shared.ActionException;

/**
 * Created by IntelliJ IDEA.
 * User: dan
 * Date: 11/16/10
 * Time: 8:13 PM
 */
public class THandler implements ActionHandler<TAction,TResult> {
    @Override
    public TResult execute(TAction testAction, ExecutionContext executionContext) throws ActionException {
        return new TResult();
    }

    @Override
    public Class<TAction> getActionType() {
        return TAction.class;
    }

    @Override
    public void undo(TAction testAction, TResult tResult, ExecutionContext executionContext) throws ActionException {
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.