users@jaxb.java.net

Re: Generating bound javabeans using xjc

From: Dmitri Colebatch <colebatchd_at_gmail.com>
Date: Fri, 21 Oct 2005 11:21:38 +1000

Hi again,

Kohsuke - do you have any thoughts on this? I've had another look
now, and I cant see how I can get in there to change the
implementation of the set methods. Is there any reason why
ImplStructureStrategy couldn't be an abstract class rather than an
emum? That would give people with requirements like mine (ie to
change the implementation of the xjc generated classes) somewhere to
hook into.

Thoughts?

cheers
dim

On 19/10/05, Dmitri Colebatch <colebatchd_at_gmail.com> wrote:
> Hi,
>
> I'd like to generate beans that have PropertyChangeListener support,
> that is have addPropertyChangeListener(PropertyChangeListener
> pcl)/removePropertyChangeListener(PropertyChangeListener pcl) methods.
>
> I'm looking through the source to ImplStructureStrategy which seems to
> be what I need to be hooking into, but I don't see how I can get in to
> fire PropertyChangeEvents.
>
> Surely I'm not the first person to have this requirement? Does anyone
> have any guidance on how to hook into this area?
>
> cheers
> dim
>