Commit Graph

11001 Commits (deaa6089b0019da0f4ada042da91c857c46d1551)
 

Author SHA1 Message Date
Phillip Webb fa6a138598 Refine ImportsContextCustomizer cache logic
Update `ImportsContextCustomizer` so that whenever possible a more
specific cache key is used.

Prior to this commit the customizer would generate a key based on *all*
annotations on the test class. This has repeatedly caused issues where
test classes that should have the same cache key did not due to
unrelated annotations.

A new `DeterminableImports` interface has been added that can be
implemented by `ImportSelector` and `ImportBeanDefinitionRegistrar`
implementations that are able to determine their imports early. The
existing `ImportAutoConfigurationImportSelector` and
`AutoConfigurationPackages` classes have been retrofitted with
this interface.

Fixes gh-7953
8 years ago
Phillip Webb aaf118c544 Fix TypeExcludeFiltersContextCustomer key
Update `TypeExcludeFiltersContextCustomer` to use filter instances
as part of the key, rather than class references. In order to be used
in tests, `TypeExcludeFilter` implementations must now implement valid
`hashCode` and `equals` methods.

Fixes gh-8125
8 years ago
Andy Wilkinson f69c994df5 Merge pull request #6857 from Eddú Meléndez
* gh-6857:
  Add @FunctionalInterface to remaining public and protected interfaces
  Annotate interfaces with @FunctionaInterface
8 years ago
Andy Wilkinson 31b0e81765 Add @FunctionalInterface to remaining public and protected interfaces
See gh-6857
8 years ago
Eddú Meléndez 3d52c86a21 Annotate interfaces with @FunctionaInterface
Closes gh-6857
8 years ago
Andy Wilkinson 6d70c061de Merge branch '1.5.x' 8 years ago
Andy Wilkinson 180ab2da8b Merge branch '1.4.x' into 1.5.x 8 years ago
Andy Wilkinson f3b9b14b8e Order ManagementContextConfiguration classes without loading them
Previously, ManagementContextConfiguration classes were loaded to
allow them to be ordered based on either @Order or implementing
Ordered. This had the unwanted side-effect of possibly logging
unwanted INFO messages if the reflection-based annotation
introspection failed. One cause of this was @ConditionalOnClass when
the referenced class was not on the classpath.

This commit uses the ASM-based annotation metadata reading to
determine the order of a management context configuration class based
on the @Order annotation. The classes are then sorted using a standard
OrderComparator. Note that Ordering via implemented Ordered is not
supported as it cannot be determine without loading the class.
8 years ago
Andy Wilkinson bed727ae8c Merge branch '1.5.x' 8 years ago
Andy Wilkinson f34d309548 Formatting 8 years ago
Stephane Nicoll f65fe4826f Merge branch '1.5.x' 8 years ago
Stephane Nicoll c0c575c94a Merge branch '1.4.x' into 1.5.x 8 years ago
Stephane Nicoll bd0c1cb9c3 Fixup version numbers following release 8 years ago
Spring Buildmaster ed1ce140c0 Next Development Version 8 years ago
Stephane Nicoll 1df3fb6ecb Merge branch '1.5.x' 8 years ago
Stephane Nicoll b575be339e Fix endpoint id
See gh-7579
8 years ago
Stephane Nicoll 506fb89ec7 Merge branch '1.5.x' 8 years ago
Stephane Nicoll 74ac585117 Upgrade to Spring Data Ingalls.RELEASE
Closes gh-8113
8 years ago
Stephane Nicoll 303df9a744 Merge branch '1.4.x' into 1.5.x 8 years ago
Stephane Nicoll a26ccb17f7 Upgrade to Spring Data Hopper.SR7
Closes gh-8112
8 years ago
Andy Wilkinson 2e2d38b651 Merge branch '1.5.x' 8 years ago
Andy Wilkinson f2b643dcb1 Correct full build as spring-boot-test-support is now part of tools 8 years ago
Andy Wilkinson 5d24c9c589 Merge branch '1.5.x' 8 years ago
Andy Wilkinson f5445ba5ff Remove OnValidatorAvailableCondition as it is now redundant
Previously, Hibernate Validator would fail to initialize if it was
on the classpath but an EL implementation was not.
OnValidatorAvailableCondition protected against this scenario by
initializing the validator.

The Hibernate Validator shortcoming was addressed in eb222209
(gh-7598). As a result, checking for the precences of the
ValidationProvider META-INF/services resource is now sufficient to
auto-configure validation. This commit removes
OnValidatorAvailableCondition as it is no longer necessary.

Closes gh-8110
8 years ago
Andy Wilkinson f049fea00d Merge branch '1.5.x' 8 years ago
Andy Wilkinson 6b353fb005 Move spring-boot-test-support into spring-boot-tools
Closes gh-8114
8 years ago
Andy Wilkinson 4993f32da8 Merge branch '1.5.x' 8 years ago
Brian Clozel de98c4b3ff Provide Reactor 3 auto-configuration
This commit provides auto-configuration for the Reactor Core 3 library.
A new configuration namespace, "spring.reactor" allows to configure
hooks on operators, like "spring.reactor.stacktrace-mode.enabled".

This property is enabled automatically by devtools, since it improves
the developer experience and provides full stacktrace information when
exceptions occur (but at a performance cost).

Fixes gh-7302
8 years ago
Andy Wilkinson f823599d1f Replace @PostConstruct validation with setter validation
Closes gh-7579
8 years ago
Stephane Nicoll ebfaac95c0 Merge branch '1.5.x' 8 years ago
Brian Clozel b804d27a0c Add Netty and RxJava dependency management 8 years ago
Stephane Nicoll 9a044d1577 Remove unused classes 8 years ago
Stephane Nicoll 219acc6b58 Merge branch '1.5.x' 8 years ago
Stephane Nicoll 265ebe784c Merge branch '1.4.x' into 1.5.x 8 years ago
Stephane Nicoll 8a3e82734e Start building against snapshots for Spring Data Hopper SR7
See gh-8112
8 years ago
Stephane Nicoll ad29a6ec07 Upgrade to Spring Integration 4.3.7.RELEASE
Closes gh-8032
8 years ago
Phillip Webb 17451c5e7a Merge branch '1.5.x' 8 years ago
Phillip Webb 6f19538028 Update CLI open_source_licenses.txt for json
Update the open_source_licenses file to reflect the fact that the
org.json library is no longer used.

See gh-5929
8 years ago
Phillip Webb f3db8c90c7 Merge branch '1.4.x' into 1.5.x 8 years ago
Phillip Webb ae910f3169 Update CLI open_source_licenses.txt file
Closes gh-7703
8 years ago
Phillip Webb 0af53b361f Ensure embedded start can be called multiple times
Update all `EmbeddedServletContainer` implementations to ensure that
the `start()` method can be called multiple times, with the second call
being ignored.

Fixes gh-8036
8 years ago
Phillip Webb ef69ae6a89 Ensure logging filters are removed on cleanup
Update `Log4J2LoggingSystem` and `LogbackLoggingSystem` to ensure
that filters are removed when the `cleanUp` method is called. Prior
to this commit application failures would not remove the filter and
no log messages would appear.

The `LoggingApplicationListener` has also been updated since it
previously failed to handle `ApplicationFailureEvents`.

Finally `EventPublishingRunListener` and `DelegatingApplicationListener`
have been updated to deal with `null` parameters and to cope with
listener errors.

Fixes gh-7758
8 years ago
Phillip Webb 3d619da553 Polish 8 years ago
Phillip Webb 71601c3b96 Merge branch '1.4.x' into 1.5.x 8 years ago
Phillip Webb 2cf93f89f5 Polish 8 years ago
Madhura Bhave a7f148091e Remove binding from ConfigFileApplicationListener
Closes gh-8101
8 years ago
Andy Wilkinson bdf903896f Remove support for module layout
Closes gh-8107
8 years ago
Andy Wilkinson 3ce6d8e5b5 Merge branch '1.5.x' 8 years ago
Andy Wilkinson cd5124005b Deprecate support for module layout
Closes gh-8008
8 years ago
Andy Wilkinson 0e4b9b5738 Merge branch '1.5.x' 8 years ago