00 - About
Introduction
A small set of Java utility libraries. Originally developed in-house at Foreach and used throughout many projects. See the library overview below for a short list of available functionality.
Release overview
JDK 7+Minimum requirements
- Spring framework 3+ (depends on libraries used)
Artifact repository
Releases are available in Maven central. Groupid is com.foreach.libs.
<dependency> <groupId>com.foreach.libs</groupId> <artifactId>common-*</artifactId> <version>1.1</version> </dependency>
Snapshots are available on the Foreach public artifact repository.
<repositories> <repository> <id>foreach-nexus</id> <name>Foreach nexus</name> <url>http://repository.foreach.be/nexus/repository/public/</url> </repository> </repositories>
Library overview
Different utilities are packaged in separate libraries:
common-concurrent
Contains a number of concurrency related constructs. Most important are the ObjectLockRepositoryand the DistributedLockRepository. The former provides an easy way to link a lock to a domain object, the latter is a simple JDBC based implementation for creating distributed locks.
common-spring
A diverse set of small utilities:
- Base classes and services for domain objects with localized properties
- Configuration helpers for Logback and Log4J (legacy)
- Custom Hibernate validators for multiple email addresses and ISBN codes
- Generic interfaces and service extensions for ConversionService related operations
- A TypedPropertyMap construct that allows you to work with a String based map of properties in a strongly typed fashion using Spring ConversionService.
- Utility classes CodeGenerator and MappedStringEncoder to generate a set of unique, random codes optionally following a pattern
common-test
Contains the MockedLoader implementation, an extension for Spring and Mockito unit testing that automatically generates mocks for all undefined bean dependencies.
common-web
Most notable are the ExceptionToMailResolver that automatically send mails with exception information, and the RequestLogInterceptor that tags every web request with a unique id for logging purposes
Quick links
Foreach.be | Twitter | Source (Bitbucket) | Issues (JIRA) | Javadoc
News & blogs
https://repository.foreach.be/javadoc/common-projects/1.0/