Plugin option for dspace services in spring

git-svn-id: http://scm.dspace.org/svn/repo/modules/dspace-services/trunk@5547 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Ben Bosman
2010-10-22 13:45:41 +00:00
parent 8b21e49228
commit bb508a30c9

View File

@@ -82,6 +82,7 @@ public class SpringServiceManager implements ServiceManagerSystem {
public static final String configPath = "spring/spring-dspace-applicationContext.xml";
public static final String corePath = "classpath*:spring/spring-dspace-core-services.xml";
public static final String pluginPath = "classpath*:spring/spring-dspace-plugin-*-services.xml";
/**
* Spring does not actually allow us to add in new singletons which
@@ -170,6 +171,7 @@ public class SpringServiceManager implements ServiceManagerSystem {
// get all spring config paths
ArrayList<String> pathList = new ArrayList<String>();
pathList.add(configPath);
pathList.add(pluginPath);
if (testMode) {
log.warn("TEST Spring Service Manager running in test mode, no core beans will be started");
} else {