[jboss-cvs] JBossAS SVN: r86993 - branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/templates.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Apr 8 16:32:19 EDT 2009


Author: emuckenhuber
Date: 2009-04-08 16:32:19 -0400 (Wed, 08 Apr 2009)
New Revision: 86993

Modified:
   branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/templates/JmsDestinationTemplate.java
Log:
[JBAS-6755] ignore removed properties

Modified: branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/templates/JmsDestinationTemplate.java
===================================================================
--- branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/templates/JmsDestinationTemplate.java	2009-04-08 20:19:11 UTC (rev 86992)
+++ branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/templates/JmsDestinationTemplate.java	2009-04-08 20:32:19 UTC (rev 86993)
@@ -177,11 +177,13 @@
       Map<String, ManagedProperty> properties = info.getProperties();
       for(ManagedProperty p : properties.values())
       {
-         if(p.hasViewUse(ViewUse.CONFIGURATION) == false)
+         boolean skip = p.getValue() == null
+            || p.hasViewUse(ViewUse.CONFIGURATION) == false
+            || p.isReadOnly()
+            || p.isRemoved();
+          
+         if(skip)
             continue;
-            
-        if(p.isReadOnly())
-           continue;
          
          MetaValue v = p.getValue();
          if(v == null)




More information about the jboss-cvs-commits mailing list