What are the various approaches use by IoC pattern for decoupling of component in Spring framework?

What are the various approaches use by IoC pattern for decoupling of component in Spring framework?

The IoC (Inversion of Control) pattern uses three different approaches in order to achieve decoupling of control of services from your components:

Interface Injection : Your components explicitly conformed to a set of interfaces, with associated configuration metadata, in order to allow the framework to manage them correctly.

Setter Injection : External metadata is used to configure how your components can be interacted with.

Constructor Injection : Your components are registered with the framework, including the parameters to be used when the components are constructed, and the framework provides instances of the component with all of the specified facilities applied.

By:Jalees
Date:2031-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related spring sub Links

spring sub interview questions and answers for experienced and fresher