|
|
Increased reuse through design patterns
-
The toalango-util package stands in the
center of the project. The module is a set of
standalone utilites for file and text handling,
only depending on the core Java library. The
singleton design pattern is applied to all
classes in this package through static-only
methods.
-
The qzarch-core module delivers the web-enabled
search engine. It wraps the
toalango-util
package and operates in a Servlet based environment.
The adapter design pattern is used on this module.
-
The demo-web demo application uses the
qzarch-core and shows how to integrate
it into a standard web application packaged as a
.war file. It uses init parameters to configure the
search engine and it dispatches the request to a
JSP to present the search results to the user, a
traditional MVC (model-view-controller) design.
-
The demo-app is another demo application which
shows how to use the
toalango-util package
to perform a "find & grep" function in a
standalone Java application. This demo relies on the
utilities only (it's not based on
qzarch-core ).
|