- 31 3月, 2014 7 次提交
-
-
由 Stephane Nicoll 提交于
This commit adds support for @Priority to filter multiple candidates for autowiring. When multiple candidates are available for a given bean, the bean annotated with @Primary is used. If none exists, the one with the higher value for the @Priority annotation is used. If two beans have the same priority a NoUniqueBeanDefinitionException is thrown, just as if two beans are annotated with @Primary. The underlying code for #getBean and #resolveDependency has been merged as this feature is available for both dependency injection and bean lookup by type. Issue: SPR-10548
-
由 Stephane Nicoll 提交于
Added tests checking the behaviour of autowiring by type when the @Primary annotation is present on the class. Fixed also some inconsistencies in the code.
-
由 Stephane Nicoll 提交于
Prior to this commit, common cache operation settings had to be repeated for every operation: cache name(s), custom cache manager and custom key manager. This commit introduces the @CacheConfig annotation to bet set at class-level (either directly or as a meta-annotation). As the cache name(s) can be rationalized there, the "value" of the various annotations are no longer mandatory. CacheAnnotationParser has an API breakage to be able to retrieve information at class-level. Issue: SPR-11316
-
由 Stephane Nicoll 提交于
-
由 Stephane Nicoll 提交于
It is now possible to specify the CacheManager to use per operation. The related cache annotation now has an extra attribute that defines the name of the CacheManager bean to use. The cache manager that was previously used is therefore a 'default' cache manager (i.e. the one to use if no custom cache manager has been set on the operation). Issue: SPR-8696
-
由 Stephane Nicoll 提交于
This commit adds an extra parameter to the base @cache method annotations: keyGenerator. This parameter holds the name of the KeyGenerator bean to use to compute the key for that specific caching endpoint. This gives therefore a third way to customize the key. These are: 1. Default KeyGenerator (global for all endpoints) 2. The 'key' attribute of the annotation, giving the SpEL expression to use 3. The 'keyGenerator' attribute of the annotation The annotation attributes are therefore exclusive. Trying to specify them both will result in an IllegalStateException. The KeyGenerator to use for a given operation is cached on startup so that multiple calls to it does not resolve the instance to use over and over again. Issue: SPR-10629
-
由 Sam Brannen 提交于
This commit ensures that QuartzSupportTests and its related configuration are compatible with Quartz 2.1.7. - Test jobs are now durable where required. - Deleted legacy tests that attempted to use a Runnable instead of a Job as a jobClass for a JobDetail. - Replaced quartz-hsql.sql with current version for Quartz 2.1.7. Issue: SPR-11630
-
- 30 3月, 2014 3 次提交
-
-
由 Sam Brannen 提交于
To simplify common use cases, this commit introduces a new execute(DataSource) method in ResourceDatabasePopulator that complements the existing populate(Connection) method. Issue: SPR-11629
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
Prior to this commit, if multiple test methods were executed in a subclass of AbstractTestNGSpringContextTests annotated with @WebAppConfiguration, then injected Servlet API mocks would only reference the mocks created for the first test method. Subsequent test methods could therefore never reference the current mocks, and there was a discrepancy between the state of the injected mocks and the mock set in the RequestContextHolder. This commit addresses this issue by ensuring that dependencies (including updated mocks) are injected into the test instance before the next test method if the ServletTestExecutionListener resets the request attributes in RequestContextHolder. Issue: SPR-11626
-
- 29 3月, 2014 1 次提交
-
-
由 Sam Brannen 提交于
-
- 28 3月, 2014 6 次提交
-
-
由 Sam Brannen 提交于
Previously, the use of Assume.group(CUSTOM_COMPILATION) in AbstractJasperReportsTests excluded all JR tests when executing in the IDE (e.g., Eclipse). This commit executes the assumption only where necessary.
-
由 Sam Brannen 提交于
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
Proactively notify all active WebSocket sessions when a shutdown is progress. Sessions then can ignore further attempts to send messages and also stop stop trying to flush messages right away.
-
由 Juergen Hoeller 提交于
Issue: SPR-11262
-
- 27 3月, 2014 11 次提交
-
-
由 Sam Brannen 提交于
-
由 Rossen Stoyanchev 提交于
-
由 Sam Brannen 提交于
- Copyright is now through 2014. - Added "@since 4.1" tag to types.
-
由 Phillip Webb 提交于
-
由 Spring Buildmaster 提交于
-
由 Juergen Hoeller 提交于
Issue: SPR-11606 (cherry picked from commit a4a2e80f)
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
Although the need to map the ASYNC dispatcher type to a Filter was already mentioned, it wasn't very prominent and can be quite critical in some cases. This change addresses that. Issue: SPR-10440
-
由 Juergen Hoeller 提交于
Issue: SPR-11609
-
由 Juergen Hoeller 提交于
Issue: SPR-11609
-
由 Juergen Hoeller 提交于
-
- 26 3月, 2014 12 次提交
-
-
由 Rossen Stoyanchev 提交于
This reverts commit 3474afb1. Unfortunately this change is likely to cause issues for applications that use regular expressions in a URI variable. I think we will have to leave at: if there are any dots in the last segment of the request path, regardless of whether they're in a URI var or not, the suffix pattern match is off. Issue: SPR-11532
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
-
由 Juergen Hoeller 提交于
Issue: SPR-11608
-
由 Juergen Hoeller 提交于
Issue: SPR-11606
-
由 Phillip Webb 提交于
This reverts commit 4788875a.
-
由 Spring Buildmaster 提交于
-
由 Rossen Stoyanchev 提交于
Issue: SPR-11450
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
-
由 Juergen Hoeller 提交于
Issue: SPR-11592
-
由 Juergen Hoeller 提交于
Issue: SPR-11592
-