Skip to content
No description or website provided.
Java
Latest commit 66cb910 Jan 28, 2016 @mdeinum polish javadoc

README.md

Spring Utils

Utility classes collected and created over the years. Some of these might be useful to others.

Modules

Validation

A Composite Validator to add multiple validators and use them. It also contains MappingValidators for which you can specify a class and fieldname(s) and decide if they are required or not. Saves you writing javacode for all those required fields.

Multi Tenant

Utilizing the TargetSource and AOP infrastructure of Spring this enables for dynamic switching of basically anything. This has been used in production for switching SessionFactory's and/or DataSources based on some request parameter. As of Hibernate 4.1 multi-tenant support is build into hibernate, this multi-tenant support also has been integrated into this. Finally we added also support for Spring Integration, there is a ChannelInterceptor which can be added to your channels to set/get the context from a message header.

Batch (@Deprecated)

Contains a LoggingItemWriter which can be useful to debug problems or for testing purposes. It also contains a SynchronizedItemReader which can be useful if concurrency for reading is needed.

Deprecated: The code has been improved and moved to Spring Batch Extensions.

Batch - Excel Item Reader

Spring Batch ItemReaders for reading MS Excel files. Currently has basic implementations for the JExcelAPI and Apache POI. It was build like the FlatFileItemReader from Spring Batch so it is fully configurable for your liking.

Web

FilterInitDestroyBeanPostProcessor ties javax.servlet.Filters in the application context to the lifecycle of the container. It also enabled the filters to be configured inside the application context, which is especially nice with legacy filters (i.e. filters which rely on retrieving init-params inside the init method for configuration).

Some servlet listeners for debugging things that happen to the ServletContext and HttpSession, can be registered manually or in a servlet 3.0 environment automatically.

Web Services

Currently only a FireAndForgetWebServiceMessageSender and connection. Current version of Spring Web Services doesn't support (out-of-the-box) fire-and-forget webservice calls. This adapter will make a WebServiceMessageSender send only.

Something went wrong with that request. Please try again.