users@jaxb.java.net

Re: JAXB Life Cycle Events for Sub classes of impl classes

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 23 Mar 2005 08:06:14 -0800

> My second solution was to (in addition to my first solution)
> derive A from X and Y when all values of MySubClass have been set.
> Conceptually at the endElement event.
> The problem is that there do not appear to be any life cycle
> events exposed that I can trap. There is no startedUnMarshal,
> endedUnmarshal etc.

In JAXB RI 2.0, we have an interface (I think it's called ObjectLifecycle)
that you can implement to perform some post action after an object is
completely unmarshalled.

--
Kohsuke