Mercurial > hg > LGDataverses
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/edu/harvard/iq/dataverse/engine/DataverseEngine.java Tue Sep 08 17:00:21 2015 +0200 @@ -0,0 +1,22 @@ +package edu.harvard.iq.dataverse.engine; + +import edu.harvard.iq.dataverse.engine.command.Command; +import edu.harvard.iq.dataverse.engine.command.exception.CommandException; + +/** + * Base interface for the Dataverse Engine - the entity responsible for + * executing {@link Command}s. + * + * @author michael + */ +public interface DataverseEngine { + + /** + * Submits a command for immediate execution. + * @param <R> The command result's type. + * @param aCommand The command to execute + * @return The result of the command execution. + * @throws CommandException + */ + public <R> R submit( Command<R> aCommand ) throws CommandException; +}
