What Kind of Files IOC Container can Read other than XML directly or Indirectly?

0 votes
Apr 23 in Java by Ferry
• 120 points
115 views

1 answer to this question.

0 votes

Hi, @Ferry,

The configuration metadata is nothing but bean definitions. BeanDefinitions are provided in the form of an XML file, annotations, or a Java config class. 

Forms of metadata with the Spring container are XML-based configuration, annotation-based configuration, and Java-based configuration.

answered Apr 23 by Gitika
• 29,690 points

Hi Gitika,

Understood the purpose of Configuration metadata i.e for bean definition. 

However, I wanna know whether IOC reads only and only XML file format (xyz.xml)?

Want to Know the different  File Format other than XML?

Anyways, I searched on the Web and came across, XYZ.PROPERTY file can be read by XML and ultimately XML file is read by IOC indirectly another file format IOC understand.

Related Questions In Java

0 votes
2 answers

How can I get the filenames of all files in a folder which may or may not contain duplicates

List<String> results = new ArrayList<String>(); File[] files = ...READ MORE

answered Sep 12, 2018 in Java by Sushmita
• 6,890 points
699 views
0 votes
2 answers

What is the use of toString method in Java and how can I use it ?

Whenever you require to explore the constructor ...READ MORE

answered Aug 23, 2018 in Java by Daisy
• 8,090 points
1,340 views
0 votes
1 answer

what are the ways in which a list can be iterated

  There are 5 ways to iterate over ...READ MORE

answered Apr 23, 2018 in Java by sharth
• 3,370 points
146 views
0 votes
2 answers

How can I invoke a method when the method name is in the form of a given string?

You could probably use method invocation from reflection: Class<?> ...READ MORE

answered Aug 19, 2019 in Java by Sirajul
• 53,110 points
154 views
0 votes
1 answer

How can I read a large text file line by line using Java?

// Open the file FileInputStream file = new ...READ MORE

answered May 2, 2018 in Java by Parth
• 4,640 points
118 views
0 votes
3 answers

How can I separate the digits of an int number in Java?

import java.util.*; public class AmstrongNumber { public static void ...READ MORE

answered Aug 6, 2019 in Java by anonymous
23,558 views
0 votes
2 answers

What is the use of @Override annotation in Java ? When do we use it ?

@Override annotation is used when we override ...READ MORE

answered Aug 14, 2019 in Java by Sirajul
• 53,110 points
287 views
0 votes
2 answers

How to read the files using Java?

You can use collections. try (Stream<Path> filePathStream=Files.walk(Paths.get("/home/you/Desktop"))) { ...READ MORE

answered Jul 10, 2018 in Java by Sushmita
• 6,890 points
114 views
0 votes
1 answer

What is Modeshape. How can i use this?

ModeShape is an open-source implementation of the JSR-283 specification and ...READ MORE

answered Mar 30 in Java by Gitika
• 29,690 points
209 views
0 votes
1 answer

What is definition of an invalid literal?

Hi, @ Stephen, I will explain to you ...READ MORE

answered Apr 20 in Java by Gitika
• 29,690 points
35 views