users@jaxb.java.net

Re: AW: Using JAXB Generated Classes as Beans

From: Adam Sherman <adam_at_tritus.ca>
Date: Thu, 30 Oct 2003 12:03:42 -0500

On 10/30/03 07:13:08 +0100 Wiedmann, Jochen wrote:

>> You would have to write not only the constructor, but an implementation
> for each
>> method in the interface. However, that's pretty easy, as it's just a
> passthrough
>> to the JAXB implementation class you're using as a delegate.
>
> Not, that I like the performance issues, but your approach might even be
> simplified
> by using Proxy classes, in which case all you need to write manually is a
> single InvocationHandler, which is simply calling method.invoke().

Interesting possibility. Can you make the proxy look like a normal bean
from the outside?

Thanks,

A.


-- 
Adam Sherman
Tritus CG Inc
+1 (613) 797-6819
http://www.tritus.ca/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net