diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-09 22:40:28 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-09 22:40:28 +0000 |
commit | dc0dd5c247fc9fc4a19d3c9935358b0eafa26bce (patch) | |
tree | 1365dc4ba5b9696b0f2df3420530bf0ca70b75b2 /java/sca/modules | |
parent | 5e9a8c94ef8bf25a70d394eaf436f2197cfff260 (diff) |
Changed to use the correct extensibility bundle classloader as parent of the contribution classloader.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@693642 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules')
-rw-r--r-- | java/sca/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/impl/ClassLoaderModelResolver.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/sca/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/impl/ClassLoaderModelResolver.java b/java/sca/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/impl/ClassLoaderModelResolver.java index 260516d146..61c73bf2f8 100644 --- a/java/sca/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/impl/ClassLoaderModelResolver.java +++ b/java/sca/modules/contribution-java/src/main/java/org/apache/tuscany/sca/contribution/java/impl/ClassLoaderModelResolver.java @@ -51,7 +51,8 @@ public class ClassLoaderModelResolver extends URLClassLoader implements ModelRes private Map<String, ModelResolver> importResolvers = new HashMap<String, ModelResolver>(); private static ClassLoader parentClassLoader() { - return ServiceDiscovery.class.getClassLoader(); + ClassLoader parentClassLoader = ServiceDiscovery.getInstance().getServiceDiscoverer().getClass().getClassLoader(); + return parentClassLoader; } public ClassLoaderModelResolver(final Contribution contribution, ModelFactoryExtensionPoint modelFactories) throws MalformedURLException { |