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