> 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