In Setter based DI(Dependency Injection), Objects define their dependencies via properties (<property> tag) and Container invoke setter methods to set these properties in object instance after invoking a no-argument constructor or no-argument static factory method to instantiate the bean.
Posts in "Spring"
Spring Setter Dependency Injection(No Arg Constructor)
In Setter based DI(Dependency Injection), Objects define their dependencies via properties(<property> tag) and Container invoke setter methods to set these properties in object instance after invoking a no-argument constructor or no-argument static factory method to instantiate the bean.
Spring Dependency Injection
What is Dependency We say Class A has dependency on Class B if Class A is using Class B reference as Variable.
Developing a Spring 3 Framework MVC application step by step tutorial
In this article, we will learn how to develop an MVC(CRUD Operation) web application from scratch using the Spring 3 Framework.
Configure HSQLDB in java web application
Here we will learn how to configure HSQLDB in Spring web application.
Cache abstraction in Spring 3
In this article, we’ll have a look at the new Spring 3 feature: caching by annotation.
Spring IoC tutorial
What is IoC (Inversion of Control) IoC is a process to define the dependency on Other Object(Objects they will work with). In the normal scenario, we first inject the dependency and then create the bean(Using New keyword) but in this case, we will first create the bean and then inject the dependencies hence it is… Continue reading
Spring Bean tutorial
Spring IoC container manages beans. Container create or configure these beans through configuration metadata provided by any of 3 ways(XML, Annotation, Java based). These beans are represented as BeanDefinition Object inside container. This BeanDefinition object contains several metadata information on how bean should be created. When ever container get a request to create an Object(Named… Continue reading
Spring Bean Overview
Spring IoC container can manager more then one beans. Beans are created with details provided via metadata configuration to container(via Java code, Java Annotation, XML). Bean Definitions are represented as the Object of BeanDefinition which contains the several metadata information. Properties those are part of BeanDefinitions are
Spring 3 IoC Container Overview
In this tutorial we will check the overview of Spring IoC Container. Interface org.springframework.context.ApplicationContext represents the Spring IoC container and is responsible for instantiating, configuring, and assembling the beans. But how and from where container gets information like which Object to Instaniate, how to configure and assemble it.