tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r606529 - /openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
Date Sun, 23 Dec 2007 02:25:05 GMT
Author: dblevins
Date: Sat Dec 22 18:25:03 2007
New Revision: 606529

URL: http://svn.apache.org/viewvc?rev=606529&view=rev
Log:
log warnings for all unused properties

Modified:
    openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java

Modified: openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java?rev=606529&r1=606528&r2=606529&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
(original)
+++ openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
Sat Dec 22 18:25:03 2007
@@ -847,6 +847,10 @@
 
         Object service = serviceRecipe.create();
 
+        for (String property : serviceRecipe.getUnsetProperties().keySet()) {
+            logger.warning("Property '" + property + "' not supported by '" + serviceInfo.id
+ "'");
+        }
+
         // Java Connector spec ResourceAdapters and ManagedConnectionFactories need special
activation
         if (service instanceof ResourceAdapter) {
             ResourceAdapter resourceAdapter = (ResourceAdapter) service;
@@ -894,6 +898,10 @@
             ConnectionManager connectionManager = (ConnectionManager) connectionManagerRecipe.create();
             if (connectionManager == null) {
                 throw new RuntimeException("Invalid connection manager specified for connector
identity = " + serviceInfo.id);
+            }
+
+            for (String property : serviceRecipe.getUnsetProperties().keySet()) {
+                logger.warning("Property '" + property + "' not supported by '" + serviceInfo.id
+ "'");
             }
 
             // service becomes a ConnectorReference which merges connection manager and mcf



Mime
View raw message