John O'Hanley
unread,Feb 26, 2011, 2:50:25 PM2/26/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web4j-users
Hi,
I'm considering splitting web4j into 2 jars.
The problem: the database/sql tools in web4j are pretty good. I, and
others, would like to be able to easily use those tools in non-web
contexts:
- command line applications
- Swing applications
However, that's not currently very easy. The reason is a design flaw
in web4j - the data layer tools have knowledge of ServletConfig, for
config information.
There are other aspects of config in general that I would like to
improve as well, to allow people to place config somewhere else than
the web.xml file.
The idea is to split off the code that deals with 2 things :
- model objects (SafeText, Decimal, and so on)
- transferring these model objects into and out of a relational
database (the data layer)
IF that is done, however, then it's natural to use new package names,
corresponding to the new jar. Thus,
hirondelle.web4j.model..
might become instead :
hirondelle.data4j.model
For existing apps, that's not the end of the world, but it is a
significant amount of pain, in order to change the imports to the
changed package names.
How would you feel about this sort of change, if this were done?
- John