users@jaxb.java.net

Re: AW: Inheritance and class callback methods

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Fri, 06 Oct 2006 09:38:10 -0700

Ernst, Matthias wrote:
>> To search for "afterUnmarshal" callback, the code uses
>> "getDeclaredMethods" which returns only declared methods and
>> not inherited ones.
>
> I'm still wondering why JAXB doesn't use a standard practice here:
> implement an interface (something like "implements UnmarshalProtocol").

Good question. I don't know.

I guess a part of the motivation was that those callbacks are
implementation details of the class, hence you normally wouldn't want to
make them public.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com