IOC, ApplicationContext and its implementations. Spring-Ep:3 #springframework #learnjava #bengali

preview_player
Показать описание
Hi,
Hope you are all doing great. Let's learn together.

Chapters ❤
0:00 Introduction
03:42 ClassPathXmlApplicationContext Code Implementation
10:08 FileSystemXmlApplicationContext Code Implementation
13:57 AnnotationConfigApplicationContext Code Implementation

Document Link -

Note:
Spring is a lightweight framework. It was developed by Rod Johnson in 2003. Spring framework makes the easy development of JavaEE applications.

Spring Video Links:

Java Video Links:

Core Java Playlist:

Like, Comment, Share, and Subscribe.
Thank you again.

STS Link:

JDK Link:

To download spring jars

Spring IOC Container
Spring IoC Container is the core of Spring Framework. It creates the objects, configures and assembles their dependencies, and manages their entire life cycle. The Container uses Dependency Injection(DI) to manage the components that make up the application. It gets the information about the objects from a configuration file(XML) or Java Code or Java Annotations and Java POJO class. These objects are called Beans.

Bean
In Spring, the objects that are managed by the Spring IoC container are called Beans.

Spring provides two types of Containers namely
BeanFactory Container
ApplicationContext Container

ApplicationContext.
ApplicationContext is the sub-interface of BeanFactory. Hence ApplicationContext includes all functionality of the BeanFactory and much more. The ApplicationContext interface uses eager loading, so every bean instantiate after the ApplicationContext started up.

ApplicationContext interface implementations

1.ClassPathXmlApplicationContext: If we have a spring bean configuration XML file in a standalone application, then we can use this class to load the file and get the container object.

2.FileSystemXmlApplicationContext: This is similar to ClassPathXmlApplicationContext except that the XML configuration file can be loaded anywhere in the file system.

3.AnnotationConfigApplicationContext: If we are using Spring in standalone Java applications and using annotations for Configuration, then we can use this to initialize the container and get the bean objects.

4.AnnotationConfigWebApplicationContext and XmlWebApplicationContext for web applications.
Рекомендации по теме
Комментарии
Автор

Timeline
Code Implementation : 03:42
Code Implementation : 10:08
Code Implementation : 13:57

contactajoydebnath
visit shbcf.ru