Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is the Spring framework called "non-intrusive"?

Spring framework is NON - INTRUSIVE.

Can you please elaborate this?

Thank You :)

like image 221
jai Avatar asked Jun 18 '10 10:06

jai


People also ask

Why Spring is a non-invasive framework?

Spring framework is said to be a non-invasive means it doesn't force a programmer to extend or implement their class from any predefined class or interface given by Spring API, in struts we used to extend Action Class right that's why struts is said to be invasive.

Why Spring is called framework of frameworks?

Spring is called the framework of frameworks. The reason is that all the frameworks are supported by Spring such as Struts, Hibernate, JSF and likewise. Spring is a very powerful yet lightweight Java Enterprise Edition application development framework. There is no need for heavy Java EE application server.

What is Spring Framework an unorthodox guide?

The short answer: At its core, Spring framework is really just a dependency injection container, with a couple of convenience layers (think: database access, proxies, aspect-oriented programming, RPC, a web mvc framework) added on top. It helps you build Java application faster and more conveniently.

What type of framework is Spring?

The Spring Framework (Spring) is an open-source application framework that provides infrastructure support for developing Java applications. One of the most popular Java Enterprise Edition (Java EE) frameworks, Spring helps developers create high performing applications using plain old Java objects (POJOs).


1 Answers

Here, "non-intrusive" means that your application code doesn't need to depend on the Spring framework directly. Anything that can inject the appropriate dependencies will (theoretically) work just as well.

like image 51
John Feminella Avatar answered Sep 28 '22 15:09

John Feminella