mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 18:14:26 +00:00
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:
@@ -82,6 +82,7 @@ public class SpringServiceManager implements ServiceManagerSystem {
|
|||||||
|
|
||||||
public static final String configPath = "spring/spring-dspace-applicationContext.xml";
|
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 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
|
* 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
|
// get all spring config paths
|
||||||
ArrayList<String> pathList = new ArrayList<String>();
|
ArrayList<String> pathList = new ArrayList<String>();
|
||||||
pathList.add(configPath);
|
pathList.add(configPath);
|
||||||
|
pathList.add(pluginPath);
|
||||||
if (testMode) {
|
if (testMode) {
|
||||||
log.warn("TEST Spring Service Manager running in test mode, no core beans will be started");
|
log.warn("TEST Spring Service Manager running in test mode, no core beans will be started");
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user