[jboss-cvs] JBossAS SVN: r90177 - 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
Mon Jun 15 05:06:59 EDT 2009


Author: emuckenhuber
Date: 2009-06-15 05:06:59 -0400 (Mon, 15 Jun 2009)
New Revision: 90177

Modified:
   branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/templates/JmsDestinationTemplateInfo.java
Log:
skip non ViewUse.Configuration properties.

Modified: branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/templates/JmsDestinationTemplateInfo.java
===================================================================
--- branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/templates/JmsDestinationTemplateInfo.java	2009-06-15 06:34:16 UTC (rev 90176)
+++ branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/templates/JmsDestinationTemplateInfo.java	2009-06-15 09:06:59 UTC (rev 90177)
@@ -25,6 +25,7 @@
 
 import org.jboss.managed.api.Fields;
 import org.jboss.managed.api.ManagedProperty;
+import org.jboss.managed.api.annotation.ViewUse;
 import org.jboss.managed.plugins.BasicDeploymentTemplateInfo;
 import org.jboss.managed.plugins.DefaultFieldsImpl;
 import org.jboss.managed.plugins.ManagedPropertyImpl;
@@ -99,6 +100,11 @@
          
          ManagedPropertyImpl newProperty = new ManagedPropertyImpl(f);
          
+         // Skip non configuration properties except clustered
+         if(newProperty.hasViewUse(ViewUse.CONFIGURATION) == false
+               && property.getName().equals("clustered") == false)
+            continue;
+         
          // Override
          addProperty(newProperty);
       }




More information about the jboss-cvs-commits mailing list