Go to file
Sam Brannen e6d16148e5 Support automatic discovery of default TELs
Prior to this commit, there was no declarative mechanism for a custom
TestExecutionListener to be registered as a default
TestExecutionListener.

This commit introduces support for discovering default
TestExecutionListener implementations via the SpringFactoriesLoader
mechanism. Specifically, the spring-test module declares all core
default TestExecutionListeners under the
org.springframework.test.context.TestExecutionListener key in its
META-INF/spring.factories properties file, and third-party frameworks
and developers can contribute to the list of default
TestExecutionListeners in the same manner.

 - AbstractTestContextBootstrapper uses the SpringFactoriesLoader to
   look up the class names of all registered default
   TestExecutionListeners and sorts the instantiated listeners using
   AnnotationAwareOrderComparator.

 - DefaultTestContextBootstrapper and WebTestContextBootstrapper now
   rely on the SpringFactoriesLoader mechanism for finding default
   TestExecutionListeners instead of hard coding fully qualified class
   names.

 - To ensure that default TestExecutionListeners are registered in the
   correct order, each can implement Ordered or declare @Order.

 - AbstractTestExecutionListener and all default TestExecutionListeners
   provided by Spring now implement Ordered with appropriate values.

 - Introduced "copy constructors" in MergedContextConfiguration and
   WebMergedContextConfiguration

 - SpringFactoriesLoader now uses AnnotationAwareOrderComparator
   instead of OrderComparator.

Issue: SPR-11466
2014-08-14 22:29:21 +02:00
.settings/gradle Remove spring-asm and inline ASM 4 into spring-core 2012-08-10 00:36:49 +02:00
buildSrc/src/main Polishing 2014-07-29 11:42:37 +02:00
gradle Switch to full gradle version 2014-07-23 17:30:48 +02:00
spring-aop/src Consistent vararg declarations for String array setters 2014-08-08 17:17:09 +02:00
spring-aspects Polishing 2014-07-29 14:11:19 +02:00
spring-beans/src BeanFactory supports bean creation arguments for by-type lookup as well 2014-08-12 22:07:12 +02:00
spring-beans-groovy/src/main Seamless support for Groovy bean definitions mixed with XML bean definitions 2014-06-30 22:53:25 +02:00
spring-context Add tests for ImportSelector meta-data 2014-08-14 07:35:16 -07:00
spring-context-support/src Polish mockito usage 2014-08-11 16:23:11 -07:00
spring-core/src Support automatic discovery of default TELs 2014-08-14 22:29:21 +02:00
spring-expression Fix some warning 2014-08-07 15:44:39 +02:00
spring-framework-bom Add a 'bill of materials' project for Maven users 2013-12-02 11:55:22 -08:00
spring-instrument/src Harmonize log configuration 2014-03-20 09:43:29 -07:00
spring-instrument-tomcat/src Harmonize log configuration 2014-03-20 09:43:29 -07:00
spring-jdbc/src Polishing 2014-08-11 22:32:03 +02:00
spring-jms/src Polish mockito usage 2014-08-11 16:23:11 -07:00
spring-messaging/src Polish mockito usage 2014-08-11 16:23:11 -07:00
spring-orm/src HibernateTransactionManagerTests for Hibernate 3 covers currentSession() as well 2014-08-09 18:30:08 +02:00
spring-orm-hibernate4/src Polishing 2014-08-11 15:20:09 +02:00
spring-oxm Consistent vararg declarations for String array setters 2014-08-08 17:17:09 +02:00
spring-test Support automatic discovery of default TELs 2014-08-14 22:29:21 +02:00
spring-tx/src Polishing 2014-08-11 15:20:09 +02:00
spring-web/src Allow null ObjectMapper in Jackson2ObjectMapperFactoryBean.getObjectType() 2014-08-14 13:40:47 +02:00
spring-webmvc/src Support Jackson based XML serialization/deserialization 2014-08-13 16:22:58 +02:00
spring-webmvc-portlet/src Consistent vararg declarations for String array setters 2014-08-08 17:17:09 +02:00
spring-webmvc-tiles2/src Fixed javadoc links 2014-07-18 17:21:44 +02:00
spring-websocket/src Polish mockito usage 2014-08-11 16:23:11 -07:00
src Support Jackson based XML serialization/deserialization 2014-08-13 16:22:58 +02:00
.gitignore Add .gradletasknamecache to .gitignore 2013-11-18 10:12:19 -08:00
.mailmap Fixup .mailmap file 2014-04-18 11:00:15 +01:00
CONTRIBUTING-DOCUMENTATION.adoc Hard-wrap CONTRIBUTING-DOCUMENTATION at 90 chars 2014-01-09 16:35:14 -08:00
CONTRIBUTING.md Update links to Spring JIRA server 2014-03-10 12:26:29 +01:00
README.md Update links to Spring JIRA server 2014-03-10 12:26:29 +01:00
build.gradle Support Jackson based XML serialization/deserialization 2014-08-13 16:22:58 +02:00
gradle.properties Switch master to 4.1.0.BUILD-SNAPSHOT 2014-03-26 22:38:39 -07:00
gradlew Replace MaxPermSize use in build scripts 2013-06-03 14:09:33 -07:00
gradlew.bat Upgrade to Gradle 1.8 and propdeps 0.0.5 2013-11-19 16:24:42 -08:00
import-into-eclipse.bat Fixed URLs in import-into-eclipse scripts 2013-09-25 16:56:10 -04:00
import-into-eclipse.sh Update Eclipse import script regarding AJDT 2014-06-12 14:04:54 +02:00
import-into-idea.md Update IDEA guidelines 2014-05-02 12:27:46 +02:00
settings.gradle Make Tiles 3 the default implementation in spring-webmvc 2014-07-12 17:23:47 -04:00

README.md

Spring Framework

The Spring Framework provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform. A key element of Spring is infrastructural support at the application level: Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments.

The framework also serves as the foundation for Spring Integration, Spring Batch and the rest of the Spring family of projects. Browse the repositories under the Spring organization on GitHub for a full list.

Downloading Artifacts

See downloading Spring artifacts for Maven repository information. Unable to use Maven or other transitive dependency management tools? See building a distribution with dependencies.

Documentation

See the current Javadoc and reference docs.

Getting Support

Check out the Spring forums and the spring and spring-mvc tags on Stack Overflow. Commercial support is available too.

Issue Tracking

Report issues via the Spring Framework JIRA. Understand our issue management process by reading about the lifecycle of an issue. Think you've found a bug? Please consider submitting a reproduction project via the spring-framework-issues GitHub repository. The readme there provides simple step-by-step instructions.

Building from Source

The Spring Framework uses a Gradle-based build system. In the instructions below, ./gradlew is invoked from the root of the source tree and serves as a cross-platform, self-contained bootstrap mechanism for the build.

Prerequisites

Git and OpenJDK 8 early access build 100 or later

Be sure that your JAVA_HOME environment variable points to the jdk1.8.0 folder extracted from the JDK download.

Check out sources

git clone git@github.com:spring-projects/spring-framework.git

Import sources into your IDE

Run ./import-into-eclipse.sh or read import-into-idea.md as appropriate.

Note: Per the prerequisites above, ensure that you have JDK 8 configured properly in your IDE.

Install all spring-* jars into your local Maven cache

./gradlew install

Compile and test; build all jars, distribution zips, and docs

./gradlew build

... and discover more commands with ./gradlew tasks. See also the Gradle build and release FAQ.

Contributing

Pull requests are welcome; see the contributor guidelines for details.

Staying in Touch

Follow @SpringCentral as well as @SpringFramework and its team members on Twitter. In-depth articles can be found at The Spring Blog, and releases are announced via our news feed.

License

The Spring Framework is released under version 2.0 of the Apache License.