Spring Inversion of Control Containers

Spring Inversion of Control Containers

Spring Container is the most important module in Spring Framework. It manages the files that are included in your application and their objects. These objects are called Java Beans.

Spring Container uses:

– Metadata: a XML configuration file, Java annotations, or Java code

– POJO Classes: Java classes

to make your application.

There are two Spring Containers:

BeanFactory (an org.springframework.beans.factory.BeanFactory interface) – simpler. light-weight applications, mobile, the most important implementation is XmlBeanFactory class

ApplicationContext (an org.springframework.context.ApplicationContextinterface interface) – more complicated, enterprise-oriented, heavy-weight applications, not-mobile, generally recommended to use, the most important implementation are FileSystemXmlApplicationContext, ClassPathXmlApplicationContext, and WebXmlApplicationContext

BeanFactory container is included in ApplicationContext container.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s