Juergen Hoeller
9ac02b319d
Remove pre-3.2 deprecated classes and methods
...
Issue: SPR-12578
2014-12-30 20:05:15 +01:00
Juergen Hoeller
1cefeb2af0
Prevent NPE in AbstractApplicationEventMulticaster's non-caching code path
...
Issue: SPR-12545
2014-12-30 10:01:58 +01:00
Juergen Hoeller
bc075c713f
Polishing
2014-12-29 20:34:18 +01:00
Juergen Hoeller
6f2de283c4
Doc: base-packages can be comma/semicolon/space/tab/linefeed-separated
...
Issue: SPR-12523
2014-12-29 13:39:48 +01:00
Juergen Hoeller
0919a15f91
Spring's JMX support can rely on native MXBean detection on Java 6+
...
Issue: SPR-12574
2014-12-29 13:26:32 +01:00
Juergen Hoeller
d4a5059097
AnnotationJmxAttributeSource uses AnnotationUtils for consistent meta-annotation handling and diagnostics
...
Issue: SPR-12572
2014-12-29 13:17:49 +01:00
Stephane Nicoll
cae217de94
Handle scoped proxy properly in MBeanExporter
...
Previously, if a bean has a scoped proxy and is annotated to be exposed
to the JMX domain, both the scoped proxy and the target instance were
exposed in the JMX domain, resulting in a duplicate entries. Worse, if
such bean defines an explicit name, the application wouldn't start
because of a name conflict.
This commit deals explicitely with scoped proxy and make sure to only
expose the relevant bean.
Issue: SPR-12529
2014-12-23 16:03:52 +01:00
Juergen Hoeller
809ee0d350
Annotation post-processors clear old InjectionMetadata registrations on refresh
...
Issue: SPR-12526
2014-12-23 14:02:00 +01:00
Juergen Hoeller
ad71c6a91c
AbstractApplicationEventMulticaster populates ListenerRetriever cache in fully synchronized fashion
...
Issue: SPR-12545
(cherry picked from commit 61a6bc0 )
2014-12-22 18:46:22 +01:00
Juergen Hoeller
b30843aee0
AbstractFallbackTransactionAttributeSource's DefaultCacheKey takes targetClass into account (again)
...
Issue: SPR-12536
(cherry picked from commit c087e51 )
2014-12-22 18:46:07 +01:00
Stephane Nicoll
67f184293b
Improve performance of generateKey
...
Only compute the error message to display when the generated key is
actually null instead of using Assert.notNull as the cache operation
'toString()' method is non trivial and gets computed regardless of the
result.
Issue: SPR-12527
2014-12-10 14:34:11 +01:00
Juergen Hoeller
bb1d1e916e
Polishing
2014-12-07 20:52:18 +01:00
Juergen Hoeller
03d4e1bc22
Consistent bridge method handling in annotation post-processors
...
Issue: SPR-12490
Issue: SPR-12495
2014-12-07 20:51:35 +01:00
Stephane Nicoll
c1f1cac359
Remove DisposableBeanMethodInterceptor
...
Previously, any @Configuration class was enhanced to namely implement
DisposableBean in order to remove static callbacks that were registered
for that class. This leads to problem if an ApplicationContext is created
and destroyed within the lifecycle on another ApplicationContext in the
same class loader.
It turns out that the destruction callback is no longer necessary as the
interceptors are now stateless: the VM is free to reclaim any of those if
necessary.
Issue: SPR-12445
2014-12-02 13:56:50 +01:00
Juergen Hoeller
c85686ac78
Polishing
2014-12-01 19:16:31 +01:00
Juergen Hoeller
fa0ef2d87e
BeanFactory accepts getBean arguments for non-prototype beans as well
...
Issue: SPR-12488
2014-12-01 19:05:26 +01:00
Juergen Hoeller
c5c5473d44
Common annotation processing for imported and nested classes within configuration classes
...
Issue: SPR-12486
2014-12-01 18:54:56 +01:00
Sebastien Deleuze
f39c505069
Remove a Groovy test already covered by testConfigFileParsingError()
...
The removed test testConfigFileParsingErrorWhenNamedBeans() could cause
a groovyc compilation error, for example when using latest IntelliJ IDEA.
Issue: SPR-12435
2014-11-25 12:03:28 +01:00
Juergen Hoeller
5e3edc667e
Support @Validated at method level for overriding validation groups
...
Issue: SPR-9174
2014-11-24 23:42:48 +01:00
Juergen Hoeller
afc77ff525
AnnotationBeanPostProcessors defensively catch and translate NoClassDefFoundErrors from class introspection
...
Issue: SPR-12461
2014-11-22 21:34:59 +01:00
Juergen Hoeller
b4167be52d
GroovyBeanDefinitionReader consistently throws BeanDefinitionParsingException for invalid files of any name
...
Issue: SPR-12435
2014-11-22 16:08:28 +01:00
Juergen Hoeller
4bd75e4146
BeanMethodInterceptor forwards user-provided arguments to getBean(name, args)
...
Issue: SPR-12443
2014-11-22 16:06:25 +01:00
Juergen Hoeller
6a96850aa7
Polishing
2014-11-06 14:29:43 +01:00
Juergen Hoeller
3c3e07e324
Defensive handling of manually registered singleton names (based on Spring Integration test failure)
...
Issue: SPR-12404
2014-11-01 23:03:02 +01:00
Juergen Hoeller
0e36402bd2
Revised retrieval of cache strategy beans
...
Issue: SPR-12336
2014-11-01 08:26:48 +01:00
Juergen Hoeller
65d163e604
Revised scheduling lifecycle integration
...
ScheduledAnnotationBeanPostProcessor uses getBean(Class) for TaskScheduler/ScheduledExecutorService retrieval, allowing for a scheduler bean to be flagged as primary, and for a TaskScheduler bean to override a ScheduledExecutorService bean.
ContextLifecycleScheduledTaskRegistrar hooks into SmartInitializingSingleton's afterSingletonsInstantiated callback instead of ContextRefreshedEvent, as a natural consequence of SmartInitializingSingleton's introduction in Spring Framework 4.1 GA.
2014-10-31 17:26:23 +01:00
Juergen Hoeller
7d2231541b
Unit tests for java.util.Optional with autowired collections on @Autowired fields/methods and @Bean method parameters
...
Issue: SPR-9132
2014-10-31 15:28:49 +01:00
Stephane Nicoll
5aefcc802e
Prevent early bean initialization with @EnableCaching
...
Prior to this commmit, any configuration class holding a CacheManager
bean would be eagerly instantiated. This is because the
CacheConfiguration infrastructure requests all beans of type
CacheManager.
This commit defers the resolution of the CacheManager as late
as possible.
Issue: SPR-12336
2014-10-31 14:37:30 +01:00
Juergen Hoeller
5f160c17cd
MBeanExporter logs lazy bean retrieval exceptions on the server at warn level
...
Issue: SPR-12399
2014-10-30 21:57:19 +01:00
Juergen Hoeller
1146d5ba1d
Polishing
2014-10-29 22:44:59 +01:00
Juergen Hoeller
c7a93a80d4
Configuration class parsing reuses metadata from AnnotatedBeanDefinition as far as possible
...
Issue: SPR-12394
2014-10-29 22:08:48 +01:00
Juergen Hoeller
725ad0df50
SimpleMetadataReaderFactory is capable of resolving inner class names with dot syntax now (analogous to ClassUtils.forName)
...
Issue: SPR-12390
2014-10-29 22:03:01 +01:00
Sang Gi Ryu
d62522982f
Performance improvement
...
Use entrySet instead of keySet followed by a lookup per key as the
former is more efficient.
Issue: SPR-12363
2014-10-24 10:53:40 +02:00
Sam Brannen
4412bc68aa
Polish Javadoc
2014-10-23 01:06:12 +02:00
Juergen Hoeller
2956049c30
Polishing
2014-10-22 17:04:50 +02:00
Juergen Hoeller
a2731f1a4f
Revised test for ImportBeanDefinitionRegistrar double scan
...
Issue: SPR-12334
(cherry picked from commit 6e5711a )
2014-10-22 02:27:41 +02:00
Juergen Hoeller
38030ef237
Test for ImportBeanDefinitionRegistrar double scan
...
Issue: SPR-12334
2014-10-21 23:45:03 +02:00
Juergen Hoeller
ad62b2afb1
Consistent throwing of BeanInstantiationException for factory methods, including a hint about circular references
...
Issue: SPR-12317
2014-10-21 21:40:43 +02:00
Juergen Hoeller
8325b10080
Consistent formatting of license headers, package javadocs, and import declarations
2014-10-21 01:44:07 +02:00
Juergen Hoeller
77a62ec8b8
Polishing
2014-10-20 17:42:18 +02:00
Juergen Hoeller
01724d3b6d
Explicitly detect (and prevent) private @Scheduled methods on CGLIB proxies
...
Issue: SPR-12308
2014-10-07 16:32:09 +02:00
Juergen Hoeller
70fec47944
Provider declaration for @Value method argument works again
...
Issue: SPR-12297
2014-10-06 18:08:19 +02:00
Juergen Hoeller
05c995cfb3
DecoratingClassLoader and its subclasses register themselves as parallel capable on Java 7+
...
Issue: SPR-12285
2014-10-02 14:33:13 +02:00
Juergen Hoeller
3a3c52dbdd
Polishing
2014-10-01 01:10:25 +02:00
Juergen Hoeller
7f9baa3a09
Polishing
2014-09-26 22:38:41 +02:00
Phillip Webb
3827e048d1
Protect against NPE when escaping LiveBeansView
...
Issue: SPR-12252
2014-09-26 12:32:04 -07:00
Juergen Hoeller
f46c706e44
Bean method metadata exposed through AnnotatedBeanDefinition
...
Issue: SPR-12232
2014-09-26 14:46:09 +02:00
Juergen Hoeller
92f7121478
LiveBeansView escapes double quotes in resource descriptions
...
Issue: SPR-12252
2014-09-26 14:01:35 +02:00
Juergen Hoeller
22c0085ba0
ComponentScanAnnotationParser supports multiple base packages within a single placeholder as well
...
Issue: SPR-10425
2014-09-25 17:51:53 +02:00
Juergen Hoeller
cfc821d179
DataBinder unwraps Optional objects and allows for proper handling of Optional.empty()
...
Issue: SPR-12241
2014-09-25 17:00:36 +02:00