[jboss-cvs] JBossAS SVN: r68231 - trunk/profileservice/src/main/org/jboss/profileservice/management.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Dec 13 04:57:37 EST 2007


Author: alex.loubyansky at jboss.com
Date: 2007-12-13 04:57:37 -0500 (Thu, 13 Dec 2007)
New Revision: 68231

Modified:
   trunk/profileservice/src/main/org/jboss/profileservice/management/ManagementViewImpl.java
Log:
use MetaValueFactory to create metaValue instead of assuming the value is a simple value

Modified: trunk/profileservice/src/main/org/jboss/profileservice/management/ManagementViewImpl.java
===================================================================
--- trunk/profileservice/src/main/org/jboss/profileservice/management/ManagementViewImpl.java	2007-12-13 08:52:47 UTC (rev 68230)
+++ trunk/profileservice/src/main/org/jboss/profileservice/management/ManagementViewImpl.java	2007-12-13 09:57:37 UTC (rev 68231)
@@ -71,6 +71,7 @@
 import org.jboss.metatype.api.values.MetaValue;
 import org.jboss.metatype.api.values.SimpleValue;
 import org.jboss.metatype.api.values.SimpleValueSupport;
+import org.jboss.metatype.api.values.MetaValueFactory;
 import org.jboss.profileservice.spi.AttachmentsSerializer;
 import org.jboss.profileservice.spi.NoSuchDeploymentException;
 import org.jboss.profileservice.spi.NoSuchProfileException;
@@ -607,7 +608,7 @@
          else
          {
             serializable = (Serializable)value;
-            metaValue = SimpleValueSupport.wrap(serializable);
+            metaValue = MetaValueFactory.getInstance().create(value);
          }
          ctxProp.setValue(serializable);
          // todo - should this also dispatch to runtime component?
@@ -615,7 +616,6 @@
          if (componentName != null)
             dispatcher.set(componentName, ctxProp.getName(), metaValue);
       }
-      log.info("Updated mo: "+mos);
    }
 
    public void removeDeployment(String deploymentName, DeploymentPhase phase)




More information about the jboss-cvs-commits mailing list