comparison src/main/java/edu/harvard/iq/dataverse/engine/DataverseEngine.java @ 10:a50cf11e5178

Rewrite LGDataverse completely upgrading to dataverse4.0
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Tue, 08 Sep 2015 17:00:21 +0200
parents
children
comparison
equal deleted inserted replaced
9:5926d6419569 10:a50cf11e5178
1 package edu.harvard.iq.dataverse.engine;
2
3 import edu.harvard.iq.dataverse.engine.command.Command;
4 import edu.harvard.iq.dataverse.engine.command.exception.CommandException;
5
6 /**
7 * Base interface for the Dataverse Engine - the entity responsible for
8 * executing {@link Command}s.
9 *
10 * @author michael
11 */
12 public interface DataverseEngine {
13
14 /**
15 * Submits a command for immediate execution.
16 * @param <R> The command result's type.
17 * @param aCommand The command to execute
18 * @return The result of the command execution.
19 * @throws CommandException
20 */
21 public <R> R submit( Command<R> aCommand ) throws CommandException;
22 }