Quantcast
Channel: Examples Java Code Geeks » Beans
Browsing all 10 articles
Browse latest View live

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 Article



Spring 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 Article

Spring 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 Article

Spring 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 Article

Spring 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 Article


Spring 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 Article

Spring 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 Article

Spring 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 Article


Spring 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 Article


Spring 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
Browsing all 10 articles
Browse latest View live




Latest Images