[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: setting managed property of type List

alesj do-not-reply at jboss.com
Wed Dec 12 09:34:53 EST 2007


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/kernel/src/main/org/jboss/kernel/spi/lazy/LazyProxyFactory.java

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#4112269

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



More information about the jboss-dev-forums mailing list