Ok,

Here it is... I've also attached this in JIRA-118

--- PropertyHandlerMapping.java-        2006-09-22 23:38:15.000000000 -0700
+++ PropertyHandlerMapping.java 2006-09-22 23:41:33.000000000 -0700
@@ -63,6 +63,16 @@
public void load(ClassLoader pClassLoader, URL pURL) throws IOException, XmlRpcException {
         Properties props = new Properties();
         props.load(pURL.openStream());
+        load(pClassLoader, props);
+    }
+    /**
+     * Reads handler definitions from an existing Properties object.
+     * @param pClassLoader The class loader being used to load
+     *   handler classes.
+     * @param props The existing Properties object to read from
+     * @throws XmlRpcException Initializing the handlers failed.
+     */
+ public void load(ClassLoader pClassLoader, Properties props) throws XmlRpcException {
         for (Iterator iter = props.entrySet().iterator();  iter.hasNext();  ) {
             Map.Entry entry = (Map.Entry) iter.next();
             String key = (String) entry.getKey();

### END DIFF

Jochen Wiedmann wrote:
On 9/22/06, Perry Nguyen <[EMAIL PROTECTED]> wrote:

Can it be made so that PropertyHandlerMapping has an overloaded load() that can accept a java.util.Properties object? It's like a 5 line change at most. For those of us that have pre-configured Properties (i.e. programmatically or via Spring) objects it saves having to write it out to a URI or subclassing
PropertyHandlerMapping to provide the desired behavior.

Sounds reasonable. Provide a patch and create a Jira issue.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to