geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r923807 - /geronimo/xbean/trunk/xbean-blueprint/src/main/java/org/apache/xbean/blueprint/context/impl/XBeanNamespaceHandler.java
Date Tue, 16 Mar 2010 15:30:46 GMT
Author: gnodet
Date: Tue Mar 16 15:30:46 2010
New Revision: 923807

URL: http://svn.apache.org/viewvc?rev=923807&view=rev
Log:
Use getResource instead of getEntry to be able to load properties from outside the bundle
itself (such as using Required-Bundle header)

Modified:
    geronimo/xbean/trunk/xbean-blueprint/src/main/java/org/apache/xbean/blueprint/context/impl/XBeanNamespaceHandler.java

Modified: geronimo/xbean/trunk/xbean-blueprint/src/main/java/org/apache/xbean/blueprint/context/impl/XBeanNamespaceHandler.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-blueprint/src/main/java/org/apache/xbean/blueprint/context/impl/XBeanNamespaceHandler.java?rev=923807&r1=923806&r2=923807&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-blueprint/src/main/java/org/apache/xbean/blueprint/context/impl/XBeanNamespaceHandler.java
(original)
+++ geronimo/xbean/trunk/xbean-blueprint/src/main/java/org/apache/xbean/blueprint/context/impl/XBeanNamespaceHandler.java
Tue Mar 16 15:30:46 2010
@@ -98,7 +98,7 @@ public class XBeanNamespaceHandler imple
     }
 
     public XBeanNamespaceHandler(String namespace, String schemaLocation, Bundle bundle,
String propertiesLocation) throws IOException, ClassNotFoundException, InstantiationException,
IllegalAccessException {
-        URL propertiesUrl = bundle.getEntry(propertiesLocation);
+        URL propertiesUrl = bundle.getResource(propertiesLocation);
         InputStream in = propertiesUrl.openStream();
         Properties properties = new Properties();
         try {



Mime
View raw message