Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7672149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:13:10+00:00 2026-05-31T16:13:10+00:00

I am reading Pro Spring 2.5 and I have a question to chapter 2

  • 0

I am reading Pro Spring 2.5 and I have a question to chapter 2 where you make a simple bean factory. They talk about a “bean registery”, is this the “Map” that holds the list it reads from the property file (could be whatever format I assume)?

So if this is correct the BeanFactory does essentially this:

  • Create bean factory and read a configuration file
  • Put the content of the configuration file in a registery (Map, List of objects whatever)
  • Client invoke getBean method with a bean name and then the factory uses the registery to find it and instantiate it.

Is this correct?

They talk about extracting the BeanRegistery to an interface and then the BeanFactory implements this interface but I guess the principles are the same? It is only done for good coding purposes?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T16:13:12+00:00Added an answer on May 31, 2026 at 4:13 pm

    I believe you’re referring to BeanDefinitionRegistry. It simply acts as a way to keep track of BeanDefinition objects (ie. what you’ve put in your xml file, assuming you’re using xml).

    Implementations do not have to do any instantiation. That is left to the BeanFactory implementation. Typically this is the way things happen:

    1. BeanFactory typically constructs a BeanDefinitionReader
    2. BeanDefinitionReader will get bean definitions (typically from xml) and register with BeanDefinitionRegistry
    3. BeanFactory will ask the BeanDefinitionRegistry for a BeanDefinition, and then instantiate it.

    In practice, the BeanFactory and BeanDefinitionRegistry are the same class, and the BeanFactoryImplementation will instantiate the appropriate BeanDefinitionReader.

    Take the org.springframework.context.support.ClassPathXmlApplicationContext implements both BeanDefinitionRegistry and BeanFactory, and will internally construct an XmlBeanDefinitionReader, and controls the interaction between the components.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am reading the Pro Spring 2.5 book and in chapter 4 they talk
I am reading the Pro Spring 2.5 book and I have a question to
I have finally finished reading Pro ASP.NET MVC 2 Framework Chapter 3: Pre-requisites but
This is sort of out of curiosity question. Reading through Pro Android 3 book
This is probably a simple question, but it's driving me crazy! I have a
This is about the internals of git . I've been reading the great 'Pro
Reading this question I found this as (note the quotation marks) code to solve
Reading over the responses to this question Disadvantages of Test Driven Development? I got
Reading through this question on multi-threaded javascript, I was wondering if there would be
I'm reading Pro JPA 2. The book talks begins by talking about ORM in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.