From: "Mark R. Diggory" <[EMAIL PROTECTED]> > The struggle I have is that the new class/object needs to be > introspectable using native java.lang.reflection utilities, I don't know > if DynaBean can do this. Can it?
No it can't. Can you patch the introspection code to be DynaBean friendly? e.g. beanutils is DynaBean aware, so if you used that for your introspection, you'd get DynaBean support for free. (Incidentally reflection & introspection are slightly different things). Another approach could be to build something like the dynabean library that uses BCEL underneath the covers to generate dynamic bytecode at runtime http://jakarta.apache.org/bcel/ Indeed maybe you could create a special kind of DynaClass which could actually use BCEL to generate a real bean class which could then be instantiated inside a DynaBean, so that it could still be used as a DynaBean but which the real, underlying Java object could be extracted and passed into your reflection/introspection code. That'd be kinda cool :-). James ------- http://radio.weblogs.com/0112098/ __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
