[jboss-cvs] JBossAS SVN: r86914 - branches/Branch_5_x/system/src/main/org/jboss/system/server/profileservice/persistence.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Apr 7 08:54:57 EDT 2009


Author: emuckenhuber
Date: 2009-04-07 08:54:57 -0400 (Tue, 07 Apr 2009)
New Revision: 86914

Modified:
   branches/Branch_5_x/system/src/main/org/jboss/system/server/profileservice/persistence/AttachmentPropertyPopulator.java
Log:
don't ignore properties which have a meta mapper

Modified: branches/Branch_5_x/system/src/main/org/jboss/system/server/profileservice/persistence/AttachmentPropertyPopulator.java
===================================================================
--- branches/Branch_5_x/system/src/main/org/jboss/system/server/profileservice/persistence/AttachmentPropertyPopulator.java	2009-04-07 12:54:03 UTC (rev 86913)
+++ branches/Branch_5_x/system/src/main/org/jboss/system/server/profileservice/persistence/AttachmentPropertyPopulator.java	2009-04-07 12:54:57 UTC (rev 86914)
@@ -35,6 +35,7 @@
 import org.jboss.metatype.api.types.MetaType;
 import org.jboss.metatype.api.values.MetaValue;
 import org.jboss.metatype.api.values.MetaValueFactory;
+import org.jboss.metatype.spi.values.MetaMapper;
 
 /**
  * The AttachmentPropertyPopulator, this writes the values of a 
@@ -90,7 +91,8 @@
       MetaValue value = property.getValue();
 
       // FIXME skip CompositeValueInvocationHandler
-      if (metaType.isComposite())
+      MetaMapper mapper = property.getTransientAttachment(MetaMapper.class);
+      if (mapper == null && metaType.isComposite())
       {
          if(metaType.getTypeName().equals(ObjectName.class.getName()) == false)
          {




More information about the jboss-cvs-commits mailing list