This section gives some elements on the inner architecture of Velosurf.
Here are the main packages of Velosurf:
velosurf contains the Velosurf class, to be used when Velosurf is used embedded in a Java application other than a Webapp.velosurf.cache contains the cache (used by the Entity class).velosurf.context contains all the classes that are to be populated
in Velocity contexts. Some of them are wrappers for internal classes (see the diagram below).velosurf.model contains the classes that help modelize the data model
as reverse engineered and/or specified in the XML configuration file.velosurf.sql contains all the classes dealing with the database itself
via jdbc.velosurf.util contains various utilities and helpers.velosurf.validation contains all classes related to data validation.velosurf.web contains the two classes that can be used as
Velocity-tools tools: HttpQueryTool and VelosurfTool.velosurf.web.auth contains all classes related to authentication.velosurf.web.l10n contains all classes related to localization.The next diagram shows the dependency relationships between the main classes of Velosurf. It should be a good introduction for someone willing to browse the api or to dig into the sources.
Some dependencies are not shown to lighten the diagram:
model and context packages use the PooledPreparedStatement class, and many
use the Database class
Database class itself references many classes of the model and context packages