OK, I'll use the proxy approach if the TypeInfo passed in for Composite is interface,
otherwise I'll use the info to reconstruct the instance.
But this means some details could get lost:
| public class Pojo
| ...
| public class SubPojo extends Pojo
| ...
| MetaValue mv = MVF.create(new SubPojo(), Pojo.class);
| SubPojo sp = MVF.unwrap(mv); // failed!!
|
I guess I could expand proxy usage to what I did with lazy stuff, to be able to handle
classes as well for proxying:
-
http://anonsvn.jboss.org/repos/jbossas/projects/microcontainer/trunk/kern...
But for Collections, you're saying there is nothing better than a default impl?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112269#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...