summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/sca-api/src/main/java/org/oasisopen
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-01-14 13:40:44 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-01-14 13:40:44 +0000
commitc66b8a374705b3f305d835e11ae18641f31d3dc0 (patch)
treeecec27d5103ea99ce0bf54d80a021e57a0930d3c /sca-java-2.x/trunk/modules/sca-api/src/main/java/org/oasisopen
parentce32ef82eaa429ca22de05b47c6b5c8e6b837ea7 (diff)
TUSCANY-3424 flip round the order in which the classloaders are set in the finder. Temporary change while fixing up the SCAClientFactory selection mechanism
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@899196 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/sca-api/src/main/java/org/oasisopen')
-rw-r--r--sca-java-2.x/trunk/modules/sca-api/src/main/java/org/oasisopen/sca/client/impl/SCAClientFactoryFinder.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/modules/sca-api/src/main/java/org/oasisopen/sca/client/impl/SCAClientFactoryFinder.java b/sca-java-2.x/trunk/modules/sca-api/src/main/java/org/oasisopen/sca/client/impl/SCAClientFactoryFinder.java
index c02494d48b..4bbb769142 100644
--- a/sca-java-2.x/trunk/modules/sca-api/src/main/java/org/oasisopen/sca/client/impl/SCAClientFactoryFinder.java
+++ b/sca-java-2.x/trunk/modules/sca-api/src/main/java/org/oasisopen/sca/client/impl/SCAClientFactoryFinder.java
@@ -57,10 +57,15 @@ public class SCAClientFactoryFinder {
* implementation.
*/
public static SCAClientFactory find(Properties properties, ClassLoader classLoader, URI domainURI) {
+ // TODO - TUSCANY-3424 - swap the order here temporarily to help with the
+ // fixes to the client factory lookup processing
+ // will revert when TUSCANY-3424 is done
if (classLoader == null) {
- classLoader = getThreadContextClassLoader();
+ // classLoader = getThreadContextClassLoader();
+ classLoader = SCAClientFactoryFinder.class.getClassLoader();
if (classLoader == null) {
- classLoader = SCAClientFactoryFinder.class.getClassLoader();
+ //classLoader = SCAClientFactoryFinder.class.getClassLoader();
+ classLoader = getThreadContextClassLoader();
}
}
final String factoryImplClassName = discoverProviderFactoryImplClass(properties, classLoader);