Juergen Hoeller
66aeeedaef
Test injection point match for narrow target return type
...
Issue: SPR-14960
(cherry picked from commit 845dbf0 )
2016-12-01 14:12:00 +01:00
Juergen Hoeller
af41dd1ed6
Efficient ISO_LOCAL_* variants for printing LocalDate/LocalTime/LocalDateTime
...
Issue: SPR-14958
(cherry picked from commit 1ae17c2 )
2016-12-01 14:11:49 +01:00
Juergen Hoeller
62631bfe33
Detect invalid configuration for autoGrowCollectionLimit on DataBinder
...
Issue: SPR-14888
2016-11-08 17:47:29 +01:00
Juergen Hoeller
db1a84ede1
Polishing
2016-11-07 18:48:35 +01:00
Juergen Hoeller
9e67ba83a5
Consistent support for early placeholder resolution in properties locations
...
Issue: SPR-10502
(cherry picked from commit 8053fef )
2016-11-03 14:53:46 +01:00
Juergen Hoeller
77e00f1926
Polishing
2016-10-31 20:40:46 +01:00
Juergen Hoeller
144f687ee9
Polishing
...
(cherry picked from commit 2f9ed59 )
2016-10-31 11:50:36 +01:00
Juergen Hoeller
0ee8322947
Revised NoSuchBeanDefinitionException message and ResolvableType handling
...
Includes consistent quoting of qualified type names in related classes.
Issue: SPR-14831
(cherry picked from commit dc080cb )
2016-10-31 11:50:15 +01:00
Juergen Hoeller
2b459881bd
ApplicationListener detection for inner beans behind post-processors
...
Issue: SPR-14783
(cherry picked from commit c946924 )
2016-10-31 11:49:06 +01:00
Juergen Hoeller
62918ca779
TypeDescriptor supports merged annotation lookups (for composable formatting annotations)
...
Issue: SPR-14844
(cherry picked from commit bf9083d )
2016-10-31 11:46:30 +01:00
Juergen Hoeller
3cca57a801
Local merged annotation lookup in SpringCacheAnnotationParser
...
Issue: SPR-14781
Issue: SPR-14801
(cherry picked from commit 08972ef )
2016-10-31 11:45:35 +01:00
Juergen Hoeller
fbad637235
SimpleApplicationEventMulticaster just swallows event downcast exceptions
...
Issue: SPR-14846
(cherry picked from commit 13001b9 )
2016-10-31 11:44:26 +01:00
Stephane Nicoll
76bbccb4dc
Allow @Cacheable method to return Optional
...
This commit further refines 240f254 to also support java.util.Optional
for synchronized cache access (i.e. when the `sync` attribute on
`@Cacheable` is set to `true`).
Issue: SPR-14853
2016-10-27 10:00:34 +02:00
Stephane Nicoll
1a1d17e13a
LiveBeansView does not rely on application contexts order anymore
...
This commit makes sure that the `unregister` order of registered
application contexts has no incidence on the removal of the LiveBeansView
MBean.
Rather than using the last application context's name to compute the
identity of the MBean to remove, the identity is stored when the MBean is
created.
This commit also adds missing tests.
Issue: SPR-14848
2016-10-26 15:03:44 +02:00
Juergen Hoeller
f9fcd24315
ConversionService detects generic type declaration on target class behind proxy as well
...
Issue: SPR-14822
(cherry picked from commit f7d740f )
2016-10-21 12:59:48 +02:00
Sam Brannen
15d3e8c3e1
Introduce 'value' alias for @Bean's 'name' attribute
...
In order to simplify configuration for use cases involving @Bean where
only a bean name or aliases are supplied as an attribute, this commit
introduces a new 'value' attribute that is an @AliasFor 'name' in @Bean.
Issue: SPR-14728
(cherry picked from commit 8f62b63 )
2016-09-18 21:04:25 +02:00
Juergen Hoeller
acbb2544bf
Polishing
...
(cherry picked from commit 4ef428d )
2016-08-31 00:45:25 +02:00
Juergen Hoeller
1932a9d729
Polishing
...
(cherry picked from commit de91b1a )
2016-08-17 21:30:30 +02:00
Juergen Hoeller
fbeff475b3
Consistent support for CompilationCustomizers as well as custom CompilerConfiguration
...
Issue: SPR-14585
(cherry picked from commit 6a0d9d3 )
2016-08-17 17:47:14 +02:00
Juergen Hoeller
4543a28e51
MethodBasedEvaluationContext reliably exposes varargs
...
Issue: SPR-14554
(cherry picked from commit fae503d )
2016-08-09 21:31:29 +02:00
Juergen Hoeller
7021a4be44
JndiPropertySource defensively skips invalid JNDI lookup for property name with colon in resource-ref mode
...
Issue: SPR-14518
(cherry picked from commit 328e04f )
2016-07-28 00:12:50 +02:00
Juergen Hoeller
fbf3807af1
Polishing
...
(cherry picked from commit 5db4495 )
2016-07-27 16:49:18 +02:00
Juergen Hoeller
703c37ec88
Isolated circular import detection for scanned configuration classes
...
Issue: SPR-14517
(cherry picked from commit 316244d )
2016-07-27 16:49:04 +02:00
Juergen Hoeller
82f2983cd4
Consistent throwing of BeanNotOfRequiredTypeException even for existing proxy
...
Issue: SPR-14504
(cherry picked from commit 4a85309 )
2016-07-24 15:47:06 +02:00
Juergen Hoeller
36e1c82ef5
Backported refinements and polishing
2016-07-20 21:46:25 +02:00
Juergen Hoeller
503d65d570
Avoid JDK proxy against CGLIB Factory interface and assert required type when resolving dependency
...
Issue: SPR-14478
(cherry picked from commit 0e3f0bd )
2016-07-20 21:45:41 +02:00
Juergen Hoeller
4d6d5e0ddd
Consistent alias processing behind AnnotatedTypeMetadata abstraction (also for ASM)
...
Issue: SPR-14427
(cherry picked from commit 3d3407c )
2016-07-15 15:40:01 +02:00
Juergen Hoeller
da59b4da9b
CronSequenceGenerator prevents stack overflow in case of inverted range
...
Issue: SPR-14462
(cherry picked from commit e431624 )
2016-07-15 15:39:17 +02:00
Juergen Hoeller
e30429051d
Polishing
...
(cherry picked from commit 6aa5931 )
2016-07-15 15:34:27 +02:00
Stephane Nicoll
7d7a161102
Polish contribution
...
Closes gh-1070
2016-07-14 11:26:31 +02:00
spodgurskiy
aaa223ae66
Fix MethodBasedEvaluationContext.lazyLoadArguments
...
This commit fix a potential `ArrayIndexOutOfBoundsException` if
`lazyLoadArguments` is called with an empty variable argument.
See gh-1070
2016-07-14 11:26:20 +02:00
Stephane Nicoll
ab62edeeaa
Fix NoOpCache handling of get(key,callable)
...
This commit fixes the method that takes a Callable to actually always
invoke it rather than returning null.
Issue: SPR-14445
2016-07-11 10:36:51 +02:00
Juergen Hoeller
92d78c10a2
Polishing (backported from master)
2016-07-06 17:13:18 +02:00
Juergen Hoeller
e15f7efff8
InjectionPoint propagated for shortcut bean name resolution as well
...
Issue: SPR-14400
2016-06-26 00:18:54 +02:00
Juergen Hoeller
8cb9d5ebae
EnableAspectJAutoProxy features exposeProxy flag (analogous to XML namespace)
...
Issue: SPR-10454
2016-06-20 13:50:04 +02:00
Juergen Hoeller
d51c22a789
Consistent processing of empty values and catching of RuntimeExceptions for Formatters
...
Issue: SPR-14345
2016-06-09 10:49:15 +02:00
Juergen Hoeller
c6f63bdb30
Assertions for error codes in case of formatting failures
...
Issue: SPR-14345
2016-06-08 15:54:00 +02:00
Juergen Hoeller
ae11387b4a
Removal of @Ignore'd tests
...
Issue: SPR-6310
Issue: SPR-6327
2016-06-02 11:47:22 +02:00
Juergen Hoeller
24f5f368b0
Consistent meta-annotation attributes lookup through ASM
...
Issue: SPR-14257
2016-05-30 22:39:27 +02:00
Juergen Hoeller
03affa02db
ConfigurationClassParser detects @Bean methods in interface hierarchies as well
...
Issue: SPR-14288
2016-05-27 22:34:09 +02:00
Stephane Nicoll
66bab2a9fc
Revert "Manage asynchronous EventListener with replies"
...
This reverts commit bee1b77af5 .
2016-05-06 13:38:03 +02:00
Juergen Hoeller
1b1aac9172
Unit tests for AsyncResult callback behavior
...
Issue: SPR-14249
2016-05-05 20:40:30 +02:00
Sam Brannen
a1a87679da
Support test annotations on interfaces
...
Prior to Java 8 it never really made much sense to author integration
tests using interfaces. Consequently, the Spring TestContext Framework
has never supported finding test-related annotations on interfaces in
its search algorithms.
However, Java 8's support for interface default methods introduces new
testing use cases for which it makes sense to declare test
configuration (e.g., @ContextConfiguration, etc.) on an interface
containing default methods instead of on an abstract base class.
This commit ensures that all non-repeatable, class-level test
annotations in the Spring TestContext Framework can now be declared on
test interfaces. The only test annotations that cannot be declared on
interfaces are therefore @Sql and @SqlGroup.
Issue: SPR-14184
2016-05-05 19:54:44 +02:00
Sam Brannen
7b13311f03
Delete unused imports
2016-05-03 20:12:37 +02:00
Juergen Hoeller
fdb31cd715
Check actual cache value for unwrapped Optional
...
Issue: SPR-14230
2016-04-29 10:56:26 +02:00
Juergen Hoeller
240f254bfc
Allow @Cacheable method to return java.util.Optional variant of cached value
...
Includes renaming of internal delegate to CacheOperationExpressionEvaluator.
Issue: SPR-14230
2016-04-28 23:16:43 +02:00
Sam Brannen
4a4cd5bde8
Polish CronSequenceGenerator and tests
2016-04-23 18:05:54 +02:00
Ruslan Sibgatullin
31d634e6bf
Added cron expression validation method for CronSequenceGenerator
...
It's handy to know in advance whether or not expression that is
passed to CronSequenceGenerator or CronTrigger constructor would
not results in IllegalArgumentException. The only way to do it
now is to try\catch an instance creation but it's kinda ugly.
2016-04-23 17:56:29 +03:00
Johnny Lim
44e652f99e
Remove duplicate words
...
Closes gh-1039
2016-04-19 08:24:21 +02:00
Stephane Nicoll
bee1b77af5
Manage asynchronous EventListener with replies
...
This commit makes sure to reject an `@EventListener` annotated method
that also uses `@Async`. In such scenario, the method is invoked in a
separate thread and the infrastructure has no handle on the actual reply,
if any.
The documentation has been improved to refer to that scenario.
Issue: SPR-14113
2016-04-15 13:22:11 +02:00