Spring Collections (List, Set, Map and Properties) Example
With this example we shall show you how to inject Collections in Spring Beans properties. The types of Collections that are supported by Spring are List, Set, Map and Properties. In order to show how...
View ArticleSpring ListFactoryBean, SetFactoryBean and MapFactoryBean Example
This is an example of how ListFactoryBean, SetFactoryBean and MapFactoryBean classes can be used to instantiate Lists, Sets and Maps and inject them as properties in a Spring Bean. The three classes...
View ArticleSpring Inject Date into Bean property with CustomDateEditor
In this example we shall show you how to inject a Date property in a Spring Bean, using the CustomDateEditor. The CustomDateEditor is a class provided by the Spring API and is used as a Property editor...
View ArticleSpring PropertyPlaceholderConfigurer Example
With this tutorial we are going to demonstrate how to use the PropertyPlaceholderConfigurer. The PropertyPlaceholderConfigurer is a property resource configurer that resolves placeholders in bean...
View ArticleSpring Bean Configuration Inheritance Example
This is a tutorial about the Configuration Inheritance between Spring Beans. In Spring, a bean definition can contain a lot of configuration information, including constructor arguments, property...
View ArticleSpring Dependency Checking Example
This is an example of how to check dependencies in a Spring Bean. A Spring Bean can have dependencies of any type, such as primitive types, Collections or even Objects that are references to other...
View ArticleSpring Bean Lifecycle Example
With this tutorial we shall show you how to use Spring’s initialization and destruction methods to control a Spring Bean’s lifecycle. Sometimes, specific actions need to be performed upon a bean...
View ArticleSpring Autowire Example
In this example we shall show you how to use Spring Autowiring features to wire beans in other beans. The Spring container can autowire relationships between collaborating beans. Spring offers the...
View ArticleSpring Object to XML Mapper
With this tutorial we shall show you how to convert Objects to xml and vice versa, using Spring’s Object/XML Mapping support. Object/XML Mapping, or O/X mapping for short, is the act of converting an...
View ArticleSpring 3 Scheduler Example – JDK Timer and Quartz Showcase
Spring Framework provides abstractions for execution and scheduling of tasks, supporting thread pools or delegation to CommonJ within an application server environment. Spring also features integration...
View Article