[jboss-cvs] JBossAS SVN: r86947 - branches/Branch_5_x/system-jmx/src/main/org/jboss/system/deployers/managed.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Apr 8 04:58:57 EDT 2009
Author: emuckenhuber
Date: 2009-04-08 04:58:57 -0400 (Wed, 08 Apr 2009)
New Revision: 86947
Modified:
branches/Branch_5_x/system-jmx/src/main/org/jboss/system/deployers/managed/ServiceMetaDataICF.java
Log:
[JBAS-6716] fix meta value mapping
Modified: branches/Branch_5_x/system-jmx/src/main/org/jboss/system/deployers/managed/ServiceMetaDataICF.java
===================================================================
--- branches/Branch_5_x/system-jmx/src/main/org/jboss/system/deployers/managed/ServiceMetaDataICF.java 2009-04-08 07:20:36 UTC (rev 86946)
+++ branches/Branch_5_x/system-jmx/src/main/org/jboss/system/deployers/managed/ServiceMetaDataICF.java 2009-04-08 08:58:57 UTC (rev 86947)
@@ -232,9 +232,7 @@
MetaMapper metaMapper = property.getTransientAttachment(MetaMapper.class);
try
{
- Class<?> valueClass = value.getClass();
- Class<?> mapToType = metaMapper != null ? (Class<?>) metaMapper.mapToType() : null;
- if(metaMapper != null && valueClass.isAssignableFrom(mapToType))
+ if(metaMapper != null)
{
mvalue = metaMapper.createMetaValue(property.getMetaType(), value);
}
@@ -274,7 +272,7 @@
// First look to the mapped name
String name = property.getMappedName();
if (name == null)
- property.getName();
+ name = property.getName();
// Get the attribute value
ServiceValueMetaData attributeValue = null;
More information about the jboss-cvs-commits
mailing list