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
10 years ago
Juergen Hoeller
c85686ac78
Polishing
10 years ago
Juergen Hoeller
fa0ef2d87e
BeanFactory accepts getBean arguments for non-prototype beans as well
...
Issue: SPR-12488
10 years ago
Juergen Hoeller
c5c5473d44
Common annotation processing for imported and nested classes within configuration classes
...
Issue: SPR-12486
10 years ago
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
10 years ago
Juergen Hoeller
5e3edc667e
Support @Validated at method level for overriding validation groups
...
Issue: SPR-9174
10 years ago
Juergen Hoeller
afc77ff525
AnnotationBeanPostProcessors defensively catch and translate NoClassDefFoundErrors from class introspection
...
Issue: SPR-12461
10 years ago
Juergen Hoeller
b4167be52d
GroovyBeanDefinitionReader consistently throws BeanDefinitionParsingException for invalid files of any name
...
Issue: SPR-12435
10 years ago
Juergen Hoeller
4bd75e4146
BeanMethodInterceptor forwards user-provided arguments to getBean(name, args)
...
Issue: SPR-12443
10 years ago
Juergen Hoeller
6a96850aa7
Polishing
10 years ago
Juergen Hoeller
3c3e07e324
Defensive handling of manually registered singleton names (based on Spring Integration test failure)
...
Issue: SPR-12404
10 years ago
Juergen Hoeller
0e36402bd2
Revised retrieval of cache strategy beans
...
Issue: SPR-12336
10 years ago
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.
10 years ago
Juergen Hoeller
7d2231541b
Unit tests for java.util.Optional with autowired collections on @Autowired fields/methods and @Bean method parameters
...
Issue: SPR-9132
10 years ago
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
10 years ago
Juergen Hoeller
5f160c17cd
MBeanExporter logs lazy bean retrieval exceptions on the server at warn level
...
Issue: SPR-12399
10 years ago
Juergen Hoeller
1146d5ba1d
Polishing
10 years ago
Juergen Hoeller
c7a93a80d4
Configuration class parsing reuses metadata from AnnotatedBeanDefinition as far as possible
...
Issue: SPR-12394
10 years ago
Juergen Hoeller
725ad0df50
SimpleMetadataReaderFactory is capable of resolving inner class names with dot syntax now (analogous to ClassUtils.forName)
...
Issue: SPR-12390
10 years ago
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
10 years ago
Sam Brannen
4412bc68aa
Polish Javadoc
10 years ago
Juergen Hoeller
2956049c30
Polishing
10 years ago
Juergen Hoeller
a2731f1a4f
Revised test for ImportBeanDefinitionRegistrar double scan
...
Issue: SPR-12334
(cherry picked from commit 6e5711a
)
10 years ago
Juergen Hoeller
38030ef237
Test for ImportBeanDefinitionRegistrar double scan
...
Issue: SPR-12334
10 years ago
Juergen Hoeller
ad62b2afb1
Consistent throwing of BeanInstantiationException for factory methods, including a hint about circular references
...
Issue: SPR-12317
10 years ago
Juergen Hoeller
8325b10080
Consistent formatting of license headers, package javadocs, and import declarations
10 years ago
Juergen Hoeller
77a62ec8b8
Polishing
10 years ago
Juergen Hoeller
01724d3b6d
Explicitly detect (and prevent) private @Scheduled methods on CGLIB proxies
...
Issue: SPR-12308
10 years ago
Juergen Hoeller
70fec47944
Provider declaration for @Value method argument works again
...
Issue: SPR-12297
10 years ago
Juergen Hoeller
05c995cfb3
DecoratingClassLoader and its subclasses register themselves as parallel capable on Java 7+
...
Issue: SPR-12285
10 years ago
Juergen Hoeller
3a3c52dbdd
Polishing
10 years ago
Juergen Hoeller
7f9baa3a09
Polishing
10 years ago
Phillip Webb
3827e048d1
Protect against NPE when escaping LiveBeansView
...
Issue: SPR-12252
10 years ago
Juergen Hoeller
f46c706e44
Bean method metadata exposed through AnnotatedBeanDefinition
...
Issue: SPR-12232
10 years ago
Juergen Hoeller
92f7121478
LiveBeansView escapes double quotes in resource descriptions
...
Issue: SPR-12252
10 years ago
Juergen Hoeller
22c0085ba0
ComponentScanAnnotationParser supports multiple base packages within a single placeholder as well
...
Issue: SPR-10425
10 years ago
Juergen Hoeller
cfc821d179
DataBinder unwraps Optional objects and allows for proper handling of Optional.empty()
...
Issue: SPR-12241
10 years ago
Juergen Hoeller
3836aa051f
Message broker thread pools should be set up in allowCoreThreadTimeOut mode
...
Issue: SPR-12249
10 years ago
Juergen Hoeller
e003d21726
Defensively use setRemoveOnCancelPolicy for JDK 6 compatibility
...
Issue: SPR-12238
10 years ago
Juergen Hoeller
e52f041a78
ComponentScanBeanDefinitionParser supports placeholders for entire base-package specification and for type filter expressions
...
Issue: SPR-10424
Issue: SPR-10425
10 years ago
Juergen Hoeller
5ecdd8ca31
Consistent Environment access in XML bean definition parsing code
...
Issue: SPR-12248
10 years ago
Juergen Hoeller
0934751d7a
BeanWrapper supports traversal of nested paths with Java 8 Optional declarations
...
Issue: SPR-12241
10 years ago
Phillip Webb
4c59d85f69
Be defensive adding additional imported configs
...
Refine the logic introduced in commit 71c6eb2b
so that additional
imported @Configuration classes are not considered as candidates if
they have already been parsed.
Issue: SPR-12233
10 years ago
Juergen Hoeller
16325c2eaa
Polishing
10 years ago
Juergen Hoeller
7f8d611598
Defensive reset/restore of JNDI environment (avoiding test side effects)
...
Issue: SPR-12223
10 years ago
Phillip Webb
a2b983a4e4
Further refine property source ordering
...
Refine property source ordering so that sources already contained in the
environment remain before those added by @PropertySource annotations.
Issue: SPR-12198
10 years ago
Phillip Webb
2077388f38
Improve JNDI detection logic
...
Update JndiLocatorDelegate.isDefaultJndiEnvironmentAvailable() to
call `getEnvironment()` on the `InitialContext` in order to actually
trigger a NamingException if JNDI is not available.
Issue: SPR-12223
10 years ago
Juergen Hoeller
f259ca1b1f
Refined tests for property source ordering
...
Issue: SPR-12198
(cherry picked from commit 205e681
)
10 years ago
Juergen Hoeller
90b93ffe3f
Restored property source ordering (fixing regression from 4.0.x)
...
Issue: SPR-12198
10 years ago
Juergen Hoeller
f4219ca06b
Consistent exclusion of bridge methods in annotation post-processors (for Java 8 compatibility)
...
Issue: SPR-12187
10 years ago