[jboss-cvs] JBossAS SVN: r64981 - projects/microcontainer/trunk/managed/src/main/org/jboss/managed/plugins/factory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Aug 30 19:25:37 EDT 2007


Author: scott.stark at jboss.org
Date: 2007-08-30 19:25:37 -0400 (Thu, 30 Aug 2007)
New Revision: 64981

Modified:
   projects/microcontainer/trunk/managed/src/main/org/jboss/managed/plugins/factory/AbstractManagedObjectFactory.java
Log:
Add more trace logging

Modified: projects/microcontainer/trunk/managed/src/main/org/jboss/managed/plugins/factory/AbstractManagedObjectFactory.java
===================================================================
--- projects/microcontainer/trunk/managed/src/main/org/jboss/managed/plugins/factory/AbstractManagedObjectFactory.java	2007-08-30 23:25:04 UTC (rev 64980)
+++ projects/microcontainer/trunk/managed/src/main/org/jboss/managed/plugins/factory/AbstractManagedObjectFactory.java	2007-08-30 23:25:37 UTC (rev 64981)
@@ -227,6 +227,7 @@
     */
    public ManagedObject buildManagedObject(Class<? extends Serializable> clazz)
    {
+      boolean trace = log.isTraceEnabled();
       BeanInfo beanInfo = configuration.getBeanInfo(clazz);
       ClassInfo classInfo = beanInfo.getClassInfo();
 
@@ -272,13 +273,16 @@
          moPropertyFactory = managementObject.propertyFactory();
       }
 
+      if (trace)
+      {
+         log.trace("Building MangedObject(name="+name+",nameType="+nameType
+               +",attachmentName="+attachmentName+",isRuntime="+isRuntime+")");
+      }
+
       ManagementProperties propertyType = ManagementProperties.ALL;
       if (managementObject != null)
          propertyType = managementObject.properties();
 
-      log.debug("Building MangedObject(name="+name+",nameType="+nameType
-            +",attachmentName="+attachmentName+",isRuntime="+isRuntime+")");
-
       // Build the ManagedProperties
       Set<ManagedProperty> properties = new HashSet<ManagedProperty>();
 
@@ -362,6 +366,13 @@
                   description = propertyName;
                fields.setField(Fields.DESCRIPTION, description);
 
+               if (trace)
+               {
+                  log.trace("Building MangedProperty(name="+propertyName
+                        +",mappedName="+mappedName
+                        +") ,annotations="+propAnnotations);
+               }
+
                boolean mandatory = false;
                if (managementProperty != null)
                   mandatory = managementProperty.mandatory();
@@ -423,6 +434,11 @@
                   property = new ManagedPropertyImpl(fields);
                properties.add(property);
             }
+            else if (trace)
+            {
+               log.trace("Ignoring property: "+propertyInfo);
+            }
+
          }
       }
 




More information about the jboss-cvs-commits mailing list