RUVIDEO
Поделитесь видео 🙏

IOC Container, BeanFactory, Lazy & Eager Loading. Spring-Ep:2 #springframework #learnjava #bengal

📁 Обучение 👁️ 16 📅 04.12.2023

Hi,
Hope you are all doing great. Let's learn together.
Join Telegram: ? https://t.me/contactajoydebnath

Chapters ❤
0:00 Introduction
01:32 Spring IOC Container
03:10 What is Bean
03:22 Type Of IOC Container
03:32 BeanFactory Container
04:29 Code Implementation
10:56 APIs of BeanFactory
11:21 getBean()
11:35 containsBean()
12:42 isSingleton()
13:58 isPrototype()
14:48 getAliases()
17:20 XmlBeanFactory class is deprecated
19:18 Lazy Loading vs. Eager Loading

Document Link :
https://docs.google.com/document/d/1TYouFQ17cll1TTz8YU5C-W8drVdPRosVhJq0fKpx6Yc/edit?usp=sharing


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

Spring Video Links :
IOC,Dependency Injection,IOC Container, Coupling. -- https://youtu.be/oRBw1H2_C4k
IOC Container, BeanFactory, Important APIs, Lazy & Eager Loading. --https://youtu.be/ZHFmQ5P7dU0
Bean Scope, Singleton Scope, and Prototype Scope. -- https://youtu.be/sBNSi2FCaf4
Autowiring, Autowiring Modes - byName, byType & constructor. -- https://youtu.be/0catrd8gf98
@Configuration, @Bean, @Component, @ComponentScan in Spring. -- https://youtu.be/OXFVdoxX4SE
What if we remove the @Configuration annotation in Spring? -- https://youtu.be/lmQ0sy74QkA
Spring JDBCTemplate, JDBC, Statement, and PreparedStatement -- https://youtu.be/jkc3RzTxzXE
JDBCTemplate, RowMapper, ResultSetExtractor, BeanPropertyRowMapper Spring https://youtu.be/NsytsxHTUro
Model-View-Controller(MVC), Spring MVC. https://youtu.be/ZPVvmX_yntA
Spring MVC with JSP (Java server Page). https://youtu.be/bmHuIsqGqB0
Spring MVC with JSP (Java server Page). https://youtu.be/yMX1wRM8wco

Java Video Links:
How to create an Immutable class in Java? Immutable Design Pattern. https://youtu.be/NJE2wrvsdaY
Factory Method Design Pattern. https://youtu.be/A5JgNaFMiUY
Stream API: Intermediate & Terminal operations. https://youtu.be/nqu-cDQzzAA
Stream API: Intermediate & Terminal operations https://youtu.be/HVGUhOBGrk8
Guide To Java 8 Optional Class. Part-I https://youtu.be/53wicqO5oeo
Guide To Java 8 Optional Class. Part-II https://youtu.be/bf9C7vBz0bI

Core Java Playlist:
https://www.youtube.com/playlist?list=PL0LQjbMWLlS3AVp2LglGSvfV6ieUSsNMp

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

STS Link:
https://spring.io/tools

JDK Link:
https://www.oracle.com/java/technologies/downloads/

To download spring jars
https://repo.spring.io/ui/native/release/org/springframework/spring

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

BeanFactory Container

BeanFactory represents a basic IoC container which is a parent interface of ApplicationContext.BeanFactory uses Beans and their dependencies metadata to create and configure them at run-time.


*For accessing a resource from the classpath, we can simply use ClassPathResource.

Let's discuss some of its important APIs.

1. The getBean() API
Various versions of the getBean() method return an instance of the specified bean, which may be shared or independent across the application.

2. The containsBean(String name) API
This method confirms if this bean factory contains a bean with the given name.

3.The isSingleton(String name) API
The isSingleton API can be used to query if this bean is a shared singleton. That is if getBean(java.lang.String) will always return the same instance.

4. The isPrototype(String name) API
This API will confirm if getBean(java.lang.String) returns independent instances – meaning a bean configured with the prototype scope, or not.

5. The getAliases(String name) API
Return the aliases for the given bean name, if any.

Note: XmlBeanFactory class is deprecated.

Lazy Loading vs. Eager Loading
BeanFactory(XmlBeanFactory) loads beans on-demand, while ApplicationContext loads all beans at startup. Thus, BeanFactory is lightweight as compared to ApplicationContext.

lazy-init="true"

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «IOC Container, BeanFactory, Lazy & Eager Loading. Spring-Ep:2 #springframework #learnjava #bengal», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.