[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Using a CompositeMetaType for a Map with String keys?
adrian@jboss.org
do-not-reply at jboss.com
Thu Mar 6 13:53:52 EST 2008
"scott.stark at jboss.org" wrote :
| In the CompositeValueFactoryUnitTestCase case, the type has to be obtained from Configuration.getTypeInfo(value.getClass()),
|
No it doesn't. "You pay your money and take your choice" ;-)
>From AbstractMetaValueFactoryTest:
|
| /**
| * Create a meta value
| *
| * @param value the value
| * @return the meta value
| */
| protected MetaValue createMetaValue(Object value)
| {
| return metaValueFactory.create(value);
| }
|
| /**
| * Create a meta value
| *
| * @param value the value
| * @param type the type
| * @return the meta value
| */
| protected MetaValue createMetaValue(Object value, Type type)
| {
| return metaValueFactory.create(value, type);
| }
|
There's also one with TypeInfo on the real factory, but not in the test helper.
I guess there should also be methods where you pass in the MetaType?????
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134650#4134650
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134650
More information about the jboss-dev-forums
mailing list