Author: doogie
Date: Thu Apr 16 20:06:18 2009
New Revision: 765737
URL:
http://svn.apache.org/viewvc?rev=765737&view=revLog:
Add a newInstance() variant that takes a collection of reader urls.
Modified:
ofbiz/trunk/framework/service/src/org/ofbiz/service/GenericDispatcher.java
Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/GenericDispatcher.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/GenericDispatcher.java?rev=765737&r1=765736&r2=765737&view=diff==============================================================================
--- ofbiz/trunk/framework/service/src/org/ofbiz/service/GenericDispatcher.java (original)
+++ ofbiz/trunk/framework/service/src/org/ofbiz/service/GenericDispatcher.java Thu Apr 16 20:06:18 2009
@@ -91,6 +91,10 @@
/** special method to obtain a new 'unique' reference with a variation on parameters */
public static LocalDispatcher newInstance(String name, GenericDelegator delegator, boolean enableJM, boolean enableJMS, boolean enableSvcs) throws GenericServiceException {
+ return newInstance(name, delegator, null, enableJM, enableJMS, enableSvcs);
+ }
+
+ public static LocalDispatcher newInstance(String name, GenericDelegator delegator, Collection<URL> readerURLs, boolean enableJM, boolean enableJMS, boolean enableSvcs) throws GenericServiceException {
ServiceDispatcher sd = new ServiceDispatcher(delegator, enableJM, enableJMS, enableSvcs);
ClassLoader loader = null;
try {
@@ -98,7 +102,7 @@
} catch (SecurityException e) {
loader = GenericDispatcher.class.getClassLoader();
}
- return new GenericDispatcher(name, delegator, null, loader, sd);
+ return new GenericDispatcher(name, delegator, readerURLs, loader, sd);
}
public static Set<String> getAllDispatcherNames() {