summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.x/modules/contribution-impl
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-04-21 06:45:30 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-04-21 06:45:30 +0000
commit990291a3ec7af02e4b28846dd0eea9bd5a031945 (patch)
tree465b58fb282caa2d13a38c5b60548b7dc0b906d3 /branches/sca-java-1.x/modules/contribution-impl
parent10ccafbe890ad4d54e95bbeaf67020e10d6be422 (diff)
TUSCANY-2972 instigate contribution type specific class loading to allow the JEE classloader to be used independently of jar, zip, dir classloading schemes
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@767015 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.x/modules/contribution-impl')
-rw-r--r--branches/sca-java-1.x/modules/contribution-impl/src/main/java/org/apache/tuscany/sca/contribution/service/impl/ContributionServiceImpl.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/branches/sca-java-1.x/modules/contribution-impl/src/main/java/org/apache/tuscany/sca/contribution/service/impl/ContributionServiceImpl.java b/branches/sca-java-1.x/modules/contribution-impl/src/main/java/org/apache/tuscany/sca/contribution/service/impl/ContributionServiceImpl.java
index 1c4d8e8547..32d8cf5b74 100644
--- a/branches/sca-java-1.x/modules/contribution-impl/src/main/java/org/apache/tuscany/sca/contribution/service/impl/ContributionServiceImpl.java
+++ b/branches/sca-java-1.x/modules/contribution-impl/src/main/java/org/apache/tuscany/sca/contribution/service/impl/ContributionServiceImpl.java
@@ -55,6 +55,7 @@ import org.apache.tuscany.sca.contribution.service.ContributionException;
import org.apache.tuscany.sca.contribution.service.ContributionRepository;
import org.apache.tuscany.sca.contribution.service.ContributionService;
import org.apache.tuscany.sca.contribution.service.ExtensibleContributionListener;
+import org.apache.tuscany.sca.contribution.service.TypeDescriber;
import org.apache.tuscany.sca.contribution.service.util.IOHelper;
import org.apache.tuscany.sca.contribution.xml.ContributionMetadataDocumentProcessor;
import org.apache.tuscany.sca.core.ExtensionPointRegistry;
@@ -135,7 +136,9 @@ public class ContributionServiceImpl implements ContributionService {
private Monitor monitor;
- private String COMPOSITE_FILE_EXTN = ".composite";
+ private String COMPOSITE_FILE_EXTN = ".composite";
+
+ private TypeDescriber packageTypeDescriber;
public ContributionServiceImpl(ContributionRepository repository,
PackageProcessor packageProcessor,
@@ -166,6 +169,8 @@ public class ContributionServiceImpl implements ContributionService {
this.policyDefinitionsResolver = policyDefinitionsResolver;
this.policyDefinitions = policyDefinitions;
this.monitor = monitor;
+
+ this.packageTypeDescriber = new PackageTypeDescriberImpl();
}
/**
@@ -370,6 +375,7 @@ public class ContributionServiceImpl implements ContributionService {
contribution.setURI(contributionURI);
contribution.setLocation(locationURL.toString());
contribution.setModelResolver(modelResolver);
+ contribution.setType(packageTypeDescriber.getType(locationURL, null));
List<URI> contributionArtifacts = null;