The Spring Framework is a Java platform that provides comprehensive infrastructure support for developing Java applications. Spring handles the infrastructure so you can focus on your application.
Spring Framework 是基于Java的,为开发Java应用提供了完善的基础支持,Spring处理 这些基础,你只需要关注你的应用本身。
Spring enables you to build applications from “plain old Java objects” (POJOs) and to apply enterprise services non-invasively to POJOs. This capability applies to the Java SE programming model and to full and partial Java EE.
Spring 使您可以使用(POJO 简单Java对象)来构建应用,并将企业非侵入式应用到POJO中,这项功能应用于JAVA SE 编程模型 以及 完整或者部分Java EE
Examples of how you, as an application developer, can benefit from the Spring platform:
作为一个应用开发者,你可以从Spring 平台中获益:
A Java application — a loose term that runs the gamut from constrained, embedded applications to n-tier, server-side enterprise applications — typically consists of objects that collaborate to form the application proper. Thus the objects in an application have dependencies on each other.
Java应用程序-从嵌入式到N 层服务器端企业应用程序,都是典型的由互相依赖的程序对象组成,因此,一个应用程序的各之间是互相依赖的。
Although the Java platform provides a wealth of application development functionality, it lacks the means to organize the basic building blocks into a coherent whole, leaving that task to architects and developers. Although you can use design patterns such as Factory, Abstract Factory, Builder, Decorator, and Service Locator to compose the various classes and object instances that make up an application, these patterns are simply that: best practices given a name, with a description of what the pattern does, where to apply it, the problems it addresses, and so forth. Patterns are formalized best practices that you must implement yourself in your application
– 尽管java 平台提供了丰富报的应用开发方法,但是还缺乏 一个方法用来将 基础模块 组件成一个连贯的整体。将这个任务留给了架构师以及开发者。尽管你可以使用设计模式 (Factory, Abstract Factory, Builder, Decorator, and Service Locator) 构造各种类和对象实例来生成一个应用程序。这些设计模式是简单的:最佳实践的名称,什么样的模式,在什么地方应用,解决什么样的问题等等。模式是实践的模式化,(或者说实践的结晶),所以你必须在你的应用中应用他们
The Spring Framework Inversion of Control (IoC) component addresses this concern by providing a formalized means of composing disparate components into a fully working application ready for use. The Spring Framework codifies formalized design patterns as first-class objects that you can integrate into your own application(s).
Numerous organizations and institutions use the Spring Framework in this manner to engineer robust, maintainable applications.
Spring Framework 的控制反转组件通过提供将不同组件构建成完整的工作应用程序的方法来解决这个问题。 Spring Framework 将形式设计模式 编译为第一类对象 ,你可以将他 集成到你的应用中。大量的组织机构使用Spring Framework 这中方式设计 健壮的可维护的应用程序。
Background
“The question is, what aspect of control are [they] inverting?” Martin Fowler posed this question about Inversion of Control (IoC) on his site in 2004. Fowler suggested renaming the principle to make it more self-explanatory and came up with Dependency Injection.
“问题是,在哪方面进行控制反转?”Martin Fowler在 2004 年在他的网站是提出了 关于这个 关于控制反转的问题。Fowler建议重新命名这个规则,使其看起来更加自明,并提出了依赖注入。