[jboss-cvs] JBossAS SVN: r64727 - 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
Mon Aug 20 23:51:05 EDT 2007
Author: scott.stark at jboss.org
Date: 2007-08-20 23:51:05 -0400 (Mon, 20 Aug 2007)
New Revision: 64727
Modified:
projects/microcontainer/trunk/managed/src/main/org/jboss/managed/plugins/factory/AbstractManagedObjectFactory.java
Log:
Correct the array value for an array of ManagedObjects to GenericValue<ManagedObject>
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-21 03:46:10 UTC (rev 64726)
+++ projects/microcontainer/trunk/managed/src/main/org/jboss/managed/plugins/factory/AbstractManagedObjectFactory.java 2007-08-21 03:51:05 UTC (rev 64727)
@@ -530,15 +530,15 @@
if (MANAGED_OBJECT_META_TYPE == arrayType.getElementType())
{
Collection cvalue = getAsCollection(value);
- ArrayMetaType moType = new ArrayMetaType(1, MANAGED_OBJECT_META_TYPE);
- ArrayValueSupport moArrayValue = new ArrayValueSupport(moType);
- ArrayList<ManagedObject> tmp = new ArrayList<ManagedObject>();
+ ArrayMetaType<GenericMetaType> moType = new ArrayMetaType<GenericMetaType>(1, MANAGED_OBJECT_META_TYPE);
+ ArrayValueSupport<GenericValueSupport> moArrayValue = new ArrayValueSupport(moType);
+ ArrayList<GenericValueSupport> tmp = new ArrayList<GenericValueSupport>();
for(Object element : cvalue)
{
ManagedObject mo = initManagedObject((Serializable) element, null, null);
- tmp.add(mo);
+ tmp.add(new GenericValueSupport(MANAGED_OBJECT_META_TYPE, mo));
}
- ManagedObject[] mos = new ManagedObject[tmp.size()];
+ GenericValueSupport[] mos = new GenericValueSupport[tmp.size()];
tmp.toArray(mos);
moArrayValue.setValue(mos);
return moArrayValue;
More information about the jboss-cvs-commits
mailing list