A
adam.corsaw
Here's the problem.
I have a program which takes an EAR file as input and generates an
install script.
I populate a bunch of JavaBeans based on information extracted from the
EAR file.
The user can change some mutable fields during the process and I have
off any settings they might have changed using Castor into an XML file.
When the user comes back in I want to read their changes in so they
don't have to setup the application again. They could have new EJBs or
a new role in their application so I can't just wipe out what I have
prepopulated with the saved settings.
The only thing I've come up with so far is to take the ArrayList of
beans and do a manual sync between the two lists of beans. I think
that's too ugly and there should be a better way than that.
I could write a custom .equals method for the beans and if it's the
same take the new version but I don't see where Castor is calling my
setMyProperty(ArrayList list) method.
Any suggestions or past experience with something like this would be
REALLY appreciated.
Thanks
I have a program which takes an EAR file as input and generates an
install script.
I populate a bunch of JavaBeans based on information extracted from the
EAR file.
The user can change some mutable fields during the process and I have
off any settings they might have changed using Castor into an XML file.
When the user comes back in I want to read their changes in so they
don't have to setup the application again. They could have new EJBs or
a new role in their application so I can't just wipe out what I have
prepopulated with the saved settings.
The only thing I've come up with so far is to take the ArrayList of
beans and do a manual sync between the two lists of beans. I think
that's too ugly and there should be a better way than that.
I could write a custom .equals method for the beans and if it's the
same take the new version but I don't see where Castor is calling my
setMyProperty(ArrayList list) method.
Any suggestions or past experience with something like this would be
REALLY appreciated.
Thanks