jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r635940 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/BeanConfig.java
Date Tue, 11 Mar 2008 14:30:42 GMT
Author: thomasm
Date: Tue Mar 11 07:30:38 2008
New Revision: 635940

URL: http://svn.apache.org/viewvc?rev=635940&view=rev
Log:
JCR-1462 repository.xml: warning for unsupported parameters

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/BeanConfig.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/BeanConfig.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/BeanConfig.java?rev=635940&r1=635939&r2=635940&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/BeanConfig.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/BeanConfig.java
Tue Mar 11 07:30:38 2008
@@ -17,6 +17,8 @@
 package org.apache.jackrabbit.core.config;
 
 import org.apache.commons.collections.BeanMap;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 import java.util.Iterator;
 import java.util.Properties;
@@ -28,6 +30,8 @@
  */
 public class BeanConfig {
 
+    private static Logger log = LoggerFactory.getLogger(BeanConfig.class);
+
     /** The default class loader used by all instances of this class */
     private static ClassLoader defaultClassLoader =
         BeanConfig.class.getClassLoader();
@@ -107,6 +111,13 @@
                 String value = properties.getProperty(name);
                 if (value != null) {
                     map.put(name, properties.getProperty(name));
+                }
+            }
+            Iterator it = properties.keySet().iterator();
+            while (it.hasNext()) {
+                String key = (String) it.next();
+                if (map.get(key) == null && properties.getProperty(key) != null)
{
+                    log.warn(object.getClass().getName() + " does not support '" + key +
"'; the setting is ignored.");
                 }
             }
             return object;



Mime
View raw message