[jboss-dev-forums] [Design the new POJO MicroContainer] - Adding MetaValueFactory.create(Object, TypeInfo, MetaType)

scott.stark@jboss.org do-not-reply at jboss.com
Sun Nov 23 20:10:15 EST 2008


The MetaValueFactory interface does not expose a create(Object, TypeInfo, MetaType) method although the default implementation has a internalCreate(Object, TypeInfo, MetaType). Why not have the corresponding create so that one can specify the MetaType? If one is specifying a MetaMapping on a property to define how the type should be mapped, this cannot be passed into the MetaValueFactory, and its not part of the TypeInfo. The only way currently to pass the MetaMapping would be to annotate the class of the property type.

Different properties of the same type will want different mappings, and jdk/thirdparty classes will not be annotated either. I think I'll add this method to MetaValueFactory once I look at some tests to see if it breaks anything to have a given TypeInfo associated with multiple MetaTypes.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191570#4191570

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191570



More information about the jboss-dev-forums mailing list