summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.x/modules/implementation-spring
diff options
context:
space:
mode:
authorramkumar <ramkumar@13f79535-47bb-0310-9956-ffa450edef68>2009-05-21 08:50:15 +0000
committerramkumar <ramkumar@13f79535-47bb-0310-9956-ffa450edef68>2009-05-21 08:50:15 +0000
commit5368a5da3b017ed59275717f0312f2532f5a8db3 (patch)
tree6fadbc6bbee6417914094c3727b7f51eed66436b /branches/sca-java-1.x/modules/implementation-spring
parentbecb5dd75e21a5ef73c5f96fde722af3e026b488 (diff)
Fixes for TUSCANY-3053
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@777017 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.x/modules/implementation-spring')
-rw-r--r--branches/sca-java-1.x/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/branches/sca-java-1.x/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java b/branches/sca-java-1.x/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java
index 98b59cca9a..50aad250ea 100644
--- a/branches/sca-java-1.x/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java
+++ b/branches/sca-java-1.x/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java
@@ -24,7 +24,6 @@ import static javax.xml.stream.XMLStreamConstants.START_ELEMENT;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
-import java.net.URISyntaxException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Iterator;
@@ -177,15 +176,12 @@ public class SpringXMLComponentTypeLoader {
URL resource = getApplicationContextResource(location, cl);
// FIXME - need a better way to handle the XMLInputFactory than allocating a new one every time
XMLInputFactory xmlFactory = XMLInputFactory.newInstance();
- XMLStreamReader reader =
- xmlFactory.createXMLStreamReader(new FileInputStream(new File(resource.toURI())));
+ XMLStreamReader reader = xmlFactory.createXMLStreamReader(resource.openStream());
return reader;
} catch (IOException e) {
throw new ContributionReadException(e);
} catch (XMLStreamException e) {
throw new ContributionReadException(e);
- } catch (URISyntaxException e) {
- throw new ContributionReadException(e);
}
}