Webwarp Util Layer
As described in the architectural
overview the util layer consist of several libraries that do
or less useful things. Many projets (but not all) are in fact quite
simple. Util modules in fact often just provide some Helper or Util
Classes when working with certain libraries or technologies. It is a
design objective that util modules declare a minimum set of
dependencies. In several modules some dependencies are marked as
optional (non transitive) because the module provides adaptations for
multiple technologies (e.g. JSF, Struts, Facelets, Standard JSP-Tags).
Using a Webwarp Util Module
For using a Webwarp utility
module in a
project you simply add the following dependency to
your Maven POM (of course you have to exchange the XXX with the
according module name. It is also recommended that you check the modules site for a new stable
rolling out for production).
The following modules are currently
available in the
Webwarp util layer:
Provides abstract base classes for creating JUnit tests. It supports
the automatic creation of Spring contexts and can use autowiring for
initializing the test instance. Additionally tests using databases and
hibernate can be easily implemented by inheriting from a corresponding
base class which (re)creates the database instance using the hibernate
Schema Exporter interface.
: Provides base classes for handling internationalized
messages and a simple exception registry.
: Provides a simple registry singleton where arbitrary object
instances can be "registered".
Provides some trivial facade implementations for symmetric
encrpytion of strings using the JAVA Cryptographic API.
Provides classes for comparing and sorting of arbitrary beans, e.g.
Provides two simple classes that we used in relation with Acegi.
likely that this code will be moved to another place within the
: Contains the list implementation that supports dynamic
: Provides parser and verifier implementations that automatically
complete user input based on the current system time.
Provides a simple observer pattern implementation (provider
listener and support classes).
Provides wrappers for reading and manipulating MS Excel files using the
: Provides a thread implementation, which runs the
Provides a persistent file/directory monitor implementation .
: Provides abstract classes and interfaces for different kind
entities. Using JAVA templates according DAO service
can be created by simply extending the abstract DAO base class.
Provides helper classes for String manipulation and interpretation,
e.g. parameter parsing, encoding and decoding and placeholder
java.util.ResourceBundle wrapper implementation that allows the
integration of multiple propertiies Files in one bundle.
Contains a set of icons that are currently only used by the UI
Provides Helper class for usage with the Spring framework, e.g. additional PropertyEditorSupport
implementationens and autowiring support.
: This package overrides parts of the Apache Shale Tiger framework and
adds some bugfixess, workarounds and additional features that
crucial for using the framework actually. This module will likely
disappear when corresponding bugfixes are made by the Shale people or
the annotation based JSF configuration is available within the JSF
Provides converters and validators for the Joda data types. It also
provides according hibernate mappings that can be loaded by declaring
the corresponding package to hibernate.
Provides some basic type implementations (Country, Language, MimeType).
additional JSF tags, a JSF utility class, several validators
converters, DateModel implementations and an alternaitve Facelets
ViewHandler which does not send the jsp:root
Tag to the
Provides a simplified API to the Java Mail API for sending emails.
: Provides utility functions for reading, writing of odt-Files and
performing replacements within them.
module provides a wrapper for calling procedures and
easily and a wrapper implementation of PreparedStatement which supports
general helper classes for use in a servlet based
servlet that maps a folder structure to an URL, a ressource filter that
interprets a part of an URL as a classpath and a servlet for directly
writing contents into the response stream, e.g. for file download.
Helper classes for reading XML configurations using the JDOM and DOM