Category Spring

Spring Setter Dependency Injection(No Arg Factory Method)

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 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 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…

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…

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…

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…