[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: setting managed property of type List
alesj
do-not-reply at jboss.com
Sat Dec 8 19:35:25 EST 2007
I've commited the introduction to CollectionValue/MetaType.
So you're now able to unwrap the Collection values as well.
| public void testCollectionUnwrap() throws Exception
| {
| Integer i1 = 123;
| Integer i2 = 123;
| checkCollection(new ArrayList<Integer>(), i1, i2);
| checkCollection(new HashSet<Integer>(), i1, i2);
|
| TestEnum one = TestEnum.ONE;
| TestEnum two = TestEnum.TWO;
| TestEnum three = TestEnum.THREE;
| checkCollection(new ArrayList<TestEnum>(), one, two, three, one);
| checkCollection(new HashSet<TestEnum>(), one, two, three, one);
|
| TestGeneric g1 = new TestGeneric("123");
| TestGeneric g2 = new TestGeneric("123");
| checkCollection(new ArrayList<TestGeneric>(), g1, g2);
| checkCollection(new HashSet<TestGeneric>(), g1, g2);
|
| TestSimpleComposite c1 = new TestSimpleComposite("123");
| TestSimpleComposite c2 = new TestSimpleComposite("123");
| checkCollection(new ArrayList<TestSimpleComposite>(), c1, c2);
| checkCollection(new HashSet<TestSimpleComposite>(), c1, c2);
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111410#4111410
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111410
More information about the jboss-dev-forums
mailing list