users@jaxb.java.net

Re: Using JAXB Generated Classes as Beans

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 29 Oct 2003 10:45:19 -0800

> I would like to use the generated classes behind forms being serviced by a
> web framework (Think Struts, Spring, WW, etc).
>
> The problem is that most, if not all, of these frameworks expect to be able
> to simply instantiate a Bean and use it.
>
> This can't be done with the generated classes, AFAIK.

You can create implementation classes directly if you want. For example,
if you want a bean for abc.def.Foo, you can just do new
abc.def.impl.FooImpl();

I guess this won't be portable, but as a workaround, it might be OK for
you.


regards,
--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net