当前位置:网站首页>Differences between beanfactory and factorybean
Differences between beanfactory and factorybean
2022-06-30 04:24:00 【No bug program yuan】
Both of them are factories , but FactoryBean It's still essentially one Bean, Also return BeanFactory management
BeanFactory yes Spring The top interface of the container ,FactoryBean More similar to user-defined factory interface .
BeanFactory: With Factory ending , Indicates that it is a factory class ( Interface ), It is responsible for production and management bean A factory of . stay Spring in ,BeanFactory yes IOC The core interface of the container , Its duties include : Instantiation 、 location 、 Configuring objects in an application and establishing dependencies between them .BeanFactory It's just an interface , Not at all IOC The concrete implementation of the container , however Spring Containers offer many implementations , Such as DefaultListableBeanFactory、XmlBeanFactory、ApplicationContext etc. , among XmlBeanFactory It's a commonly used one , The implementation will use XML Method describes the objects that make up the application and the dependencies among them .XmlBeanFactory Class will hold this XML Configuration metadata , And use it to build a fully configurable system or application .
FactoryBean: It's a Bean. stay Spring in , be-all Bean It's all by BeanFactory( That is to say IOC Containers ) To manage . But yes FactoryBean for , This Bean It's not simple Bean, It's a factory that can produce or decorate object generation Bean, Its implementation is similar to the factory pattern and decorator pattern in the design pattern
边栏推荐
- 【WEBRTC】ADM: rtc_ include_ internal_ audio_ Device triggers RTC_ Dcheck (ADM) assertion
- FortiGate firewall and Aruze cloud tunnel interruption
- Myrpc version 6
- Tea mall system based on SSM framework [project source code + database script + report]
- JS reflect
- Slam mapping, automatic navigation and obstacle avoidance based on ROS (bingda robot)
- Unity when entering a string in the editor, escape the input of characters
- RPC correction based on arcpy API
- How the FortiGate firewall rejects a port by using the local in policy policy
- Salary management system based on servlet+jsp+mysql [source code + database]
猜你喜欢

基于海康EhomeDemo工具排查公网部署出现的视频播放异常问题

FortiGate configures multiple server IPS as link monitor monitoring objects on the same interface

FortiGate firewall configuration log uploading regularly

SQLyog导入数据库时报错,求帮解决!

Es2017 key summary

Threejs实现模拟河流,水面水流,水管水流,海面

El upload upload file (manual upload, automatic upload, upload progress)

The new paradigm of AI landing is "hidden" in the next major upgrade of software infrastructure

Thingsboard tutorial (II and III): calculating the temperature difference between two devices in a regular chain

Named pipes for interprocess communication
随机推荐
Matlab reads fig file and restores signal
lego_ Reading and summary of loam code
Configure specific source IP in SLA detection of FortiGate sdwan
JS file block to Base64 text
基于ROS的SLAM建图、自动导航、避障(冰达机器人)
Code cloud fatal: authentication failed for
Collinearity problem
Refers to the difference between IP and *ip at output
SQL追加字段
MySQL updates JSON string in array form
Es2018 key summary
管道实现进程间通信之命名管道
Unity échappe à l'entrée de caractères lors de l'entrée de chaînes dans l'éditeur
Implementation steps of dynamic proxy
数据链路层详解
在大厂外包呆了三年,颠覆了我的认知!
FortiGate firewall filters the specified session and cleans it up
Share an example of a simple MapReduce method using a virtual machine
How to solve the problem of link hyperlinks when trying to link the database?
《机器人SLAM导航核心技术与实战》第1季:第0章_SLAM发展综述