VIVO-906 Assemble application at runtime.

Create an object to represent VitroHomeDirectory
Instantiate TripleSources, FileStorage, etc, based on the config file.
This commit is contained in:
Jim Blake 2014-11-13 17:11:11 -05:00
parent e3dca6a699
commit ebb31eb081
22 changed files with 665 additions and 440 deletions

View file

@ -7,10 +7,13 @@ import java.lang.reflect.Field;
import javax.servlet.ServletContext;
import edu.cornell.mannlib.vitro.webapp.application.ApplicationUtils;
import edu.cornell.mannlib.vitro.webapp.application.VitroHomeDirectory;
import edu.cornell.mannlib.vitro.webapp.modules.Application;
import edu.cornell.mannlib.vitro.webapp.modules.fileStorage.FileStorage;
import edu.cornell.mannlib.vitro.webapp.modules.imageProcessor.ImageProcessor;
import edu.cornell.mannlib.vitro.webapp.modules.searchEngine.SearchEngine;
import edu.cornell.mannlib.vitro.webapp.modules.tripleSource.ConfigurationTripleSource;
import edu.cornell.mannlib.vitro.webapp.modules.tripleSource.ContentTripleSource;
/**
* TODO
@ -61,6 +64,12 @@ public class ApplicationStub implements Application {
// Un-implemented methods
// ----------------------------------------------------------------------
@Override
public VitroHomeDirectory getHomeDirectory() {
throw new RuntimeException(
"ApplicationStub.getHomeDirectory() not implemented.");
}
@Override
public ImageProcessor getImageProcessor() {
throw new RuntimeException(
@ -74,4 +83,22 @@ public class ApplicationStub implements Application {
"ApplicationStub.getFileStorage() not implemented.");
}
@Override
public void shutdown() {
throw new RuntimeException(
"ApplicationStub.shutdown() not implemented.");
}
@Override
public ContentTripleSource getContentTripleSource() {
throw new RuntimeException(
"ApplicationStub.getContentTripleSource() not implemented.");
}
@Override
public ConfigurationTripleSource getConfigurationTripleSource() {
throw new RuntimeException(
"ApplicationStub.getConfigurationTripleSource() not implemented.");
}
}