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 7549395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:56:20+00:00 2026-05-30T09:56:20+00:00

This might be a way to simple question, but I seem to miss the

  • 0

This might be a way to simple question, but I seem to miss the right google-words 8/ Does Spring 3 have a way to read an arbitrary value from any of the xml-config-files? Meaning, I’d just like to read a value, not having Spring set up anything according to it.

Thanx in advance,
Marcus

Added:

mentioning, that I’m new to Java beforehand, I’d like to have some like <DatabaseType>MYSQL</DatabaseType> inside any of the configs, that are processed by Spring and would like to access them inside of any Java-class.

Why would I want that? I have a basic SWT/JFace fronted (working) and a DAO-layer (working, too). Now, I’m thinking about the services in the middle. Currently, my service has something like ‘MYSQL’ hardcoded to instantiate the DAO-factory. But that would couple the service directly to MYSQL in that case, thus ruining the whole decoupling-efforts. So, to abstract that as well, I’d go for an abstract factory for the services aswell. But to decide on some parameters, I’d have to read those out of some config. As Spring already does that, I’d feel it to be nonsense to implement that separately.

  • 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-30T09:56:21+00:00Added an answer on May 30, 2026 at 9:56 am

    Spring is mainly a Dependency-Injection framework – so if you need a value from the configuration somewhere in your application you should spring let inject it into your class.

    Have a look at the documentation, e.g. Dependencies and configuration in detail.

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

Sidebar

Related Questions

I'm new to serialization, so this might be a simple question, but my google-fu
Note: This might seem like a Super User question at first, but please read
this might be a very very basic question, but what is the best way
This might seem like a very easy question for some of you folks, but
This might be a simple question but I've searched and searched and can't find
I think this might be a pretty simple question, but I haven't been able
this might be a simple question, but I was wondering if there was a
I am sure this is a fairly simple question but I can't seem to
It might be an easy and simple question but I still have a little
Hey guys this might a simple question to answer but currently im clueless, i

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.