diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-21 06:21:03 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-21 06:21:03 +0000 |
commit | 8f745a29d64061ce514d9876b985ee0f8c1bc2a6 (patch) | |
tree | 6b4243fe0f021b1364fa41abfc0261ec7e150473 /branches/sca-java-1.5/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring | |
parent | 1a711e35c4538c3cad2c636bd4547549ea2f7e11 (diff) |
Merge 1.x trunk fix to locate spring resources within jars
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@776968 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.5/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring')
-rw-r--r-- | branches/sca-java-1.5/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/branches/sca-java-1.5/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java b/branches/sca-java-1.5/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java index 261f48461f..a1f278bc2b 100644 --- a/branches/sca-java-1.5/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java +++ b/branches/sca-java-1.5/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java @@ -146,7 +146,7 @@ public class SpringXMLComponentTypeLoader { implementation.setURI(resource.toString());
// FIXME - need a better way to handle the XMLInputFactory than allocating a new one every time
XMLInputFactory xmlFactory = XMLInputFactory.newInstance();
- reader = xmlFactory.createXMLStreamReader(new FileInputStream(new File(resource.toURI())));
+ reader = xmlFactory.createXMLStreamReader(resource.openStream());
// System.out.println("Spring TypeLoader - starting to read context file");
readContextDefinition(reader, beans, services, references, scaproperties);
|