Juergen Hoeller
903ae48382
DisposableBeanAdapter ignores bridge method conflicts
...
Issue: SPR-13922
2016-02-08 13:20:48 +01:00
Sam Brannen
81f68463ec
Clean up warnings in Gradle build
2016-02-03 18:42:30 +01:00
Sam Brannen
3cf5cfd672
Fix Javadoc
2016-01-28 19:00:37 +01:00
Juergen Hoeller
4a0fa69ce4
Injection support for Collection/Map beans and self references
...
Issue: SPR-13585
Issue: SPR-12180
Issue: SPR-7915
Issue: SPR-8450
2016-01-25 21:25:48 +01:00
Juergen Hoeller
c95dfca726
Log profile-based exclusion of XML bean definition file
...
Issue: SPR-10202
2016-01-25 20:26:12 +01:00
Stephane Nicoll
0d04af14f8
Refine test
...
Issue: SPR-13837
2016-01-19 15:11:58 +01:00
Stephane Nicoll
9b9df6a744
Add test
...
Issue: SPR-13837
2016-01-19 14:40:52 +01:00
Juergen Hoeller
773d175681
Polishing
2016-01-13 12:52:05 +01:00
Juergen Hoeller
04f31816bd
Avoid getTypeForFactoryBean warn logging for lazy-init beans
...
Issue: SPR-13833
2015-12-31 11:47:46 +01:00
Juergen Hoeller
4f955932a7
@Value can be used as aliased meta-annotation
...
Issue: SPR-13603
2015-12-29 18:02:16 +01:00
Juergen Hoeller
1d8a3e1f07
BeanFactoryAnnotationUtils searches on bean implementation classes and meta-annotations as well
...
Issue: SPR-13819
Issue: SPR-13452
2015-12-28 23:28:08 +01:00
Juergen Hoeller
bb3ff25cad
Polishing
2015-12-21 23:07:32 +01:00
Juergen Hoeller
b28310d0b9
Polishing
2015-12-21 18:42:49 +01:00
Juergen Hoeller
cad2ce0ac2
ConstructorResolver always uses arguments when completely provided
...
Issue: SPR-13808
2015-12-21 15:11:40 +01:00
Juergen Hoeller
fca5365cf1
Avoid scoped destruction callbacks in case of no post-processor actually applying
...
Issue: SPR-13744
2015-12-18 16:54:05 +01:00
Juergen Hoeller
967ef73765
Detect @Autowired constructors for configuration classes
...
Issue: SPR-13471
2015-12-18 15:31:31 +01:00
Stephane Nicoll
9e7c791a0f
Automatically autowire a bean with one constructor
...
Previously, if a managed bean had only one non-default constructor, we
should still annotate it with `@Autowired` to properly use constructor
injection. Not doing so resulted in an error as the container was
trying to call the default (non-existing) constructor.
This commit updates this behaviour to automatically applyed the
autowiring semantic to any bean that has only one constructor. As
before, if more than one constructor is defined, `@Autowired` must be
specified to teach the container the constructor it has to use.
Issue: SPR-12278
2015-12-18 14:04:18 +01:00
Sam Brannen
5b3edcd9f9
Spring Cleaning in December
...
- Delete unused imports
- Delete unused code
- Clean up warnings
2015-12-17 20:27:33 +01:00
Stephane Nicoll
752d3c715a
Initiate structure for 4.3 XSDs
2015-12-17 15:43:23 +01:00
Juergen Hoeller
11806b9215
Class identity comparisons wherever possible (and further polishing)
...
Issue: SPR-12926
2015-12-09 12:28:09 +01:00
Juergen Hoeller
08b6daf1eb
Polishing
2015-12-03 18:41:03 +01:00
Juergen Hoeller
7589c1f164
Aligned class name quoting with ConversionFailedException
2015-12-01 16:10:11 +01:00
Juergen Hoeller
b70af3bf57
Polishing
2015-12-01 14:10:46 +01:00
Juergen Hoeller
998da2f45c
Document destruction callback behavior for inner beans in case of scope mismatch
...
This commit undoes the previous refinement and rather documents the original behavior.
Issue: SPR-13739
2015-11-30 21:57:54 +01:00
Juergen Hoeller
8ed2c470be
Avoid instantiation of non-selected beans in BeanFactoryAnnotationUtils.qualifiedBeanOfType
...
Issue: SPR-13741
2015-11-30 20:13:03 +01:00
Juergen Hoeller
7104076e19
Avoid Scope.registerDestructionCallback for inner beans in case of scope mismatch
...
This commit refines getMergedBeanDefinition's scope adaptation algorithm for inner beans, never leaving a custom scope within a containing bean of a different scope. The inner bean's scope will either be aligned with the containing bean's scope (matching the effective state) or be switched to prototype in case of an outer singleton (indicating that no singleton state management is desired).
Issue: SPR-13739
2015-11-30 20:10:26 +01:00
Juergen Hoeller
24e4f56d7e
Test case for event listener methods on bean with potentially inactive scope
...
Also taking the opportunity to refine the "No Scope registered" exception message a bit.
Issue: SPR-13681
2015-11-25 16:56:39 +01:00
Juergen Hoeller
20a286b4d6
ASM ClassWriter uses application ClassLoader for its getCommonSuperClass check
...
Issue: SPR-13695
2015-11-24 17:38:02 +01:00
Juergen Hoeller
98be36a306
Extended default collection size for common per-bean caches
...
Issue: SPR-13621
2015-11-13 08:31:00 +01:00
Johnny Lim
2defb6555e
Fix broken Javadoc related to `<` and `>`
2015-11-12 11:22:08 +01:00
Juergen Hoeller
2bf8c0bc42
Polishing
2015-11-10 23:47:46 +01:00
Juergen Hoeller
2ba5cb2734
Polishing
2015-11-05 12:30:29 +01:00
Juergen Hoeller
e35855f9b5
Avoid expensive annotation retrieval algorithm if no annotations present in the first place
...
Issue: SPR-13621
2015-11-05 12:26:54 +01:00
Juergen Hoeller
5386e8a9e9
DefaultListableBeanFactory skips resolvableDependencies check for null value
...
Issue: SPR-13599
2015-10-26 22:45:36 +01:00
Juergen Hoeller
8b3b8d070e
Consistently detect spring-beans.dtd reference in last path segment
...
Issue: SPR-13549
2015-10-09 22:54:35 +02:00
Stephane Nicoll
b7c2881a4f
Clarify javadoc
...
The Javadoc wrongly referred to a behaviour that is not (and should not
be) implemented. List items are split into indexed keys and the
comma-separated value is not retained.
Issues: SPR-13257
2015-10-02 14:17:54 +02:00
Sam Brannen
d5ee787e1e
Migrate JUnit 3 tests to JUnit 4
...
This commit migrates all remaining tests from JUnit 3 to JUnit 4, with
the exception of Spring's legacy JUnit 3.8 based testing framework that
is still in use in the spring-orm module.
Issue: SPR-13514
2015-09-27 21:17:51 +02:00
Juergen Hoeller
097bcfb997
DefaultListableBeanFactory switches to thread-safe copying for names collections if necessary
...
Issue: SPR-13493
Issue: SPR-13123
Issue: SPR-12503
2015-09-25 15:20:40 +02:00
Juergen Hoeller
627393a155
Reverted StrictMapAppenderConstructor constructor back to public
...
Issue: SPR-13504
2015-09-24 22:51:30 +02:00
Juergen Hoeller
54d3d782a9
Polishing
2015-09-23 22:44:52 +02:00
izeye
1aa77ef817
Add a missing `@throws` in Javadoc
...
Closes gh-873
2015-09-15 06:29:50 -04:00
Juergen Hoeller
667fc7e4a9
Polishing
2015-09-04 14:38:47 +02:00
Juergen Hoeller
d4a23b81e9
Properties values get properly converted to generic Map types (fixing 4.x regression without use of ConversionService)
...
Issue: SPR-13256
2015-08-31 17:20:05 +02:00
Juergen Hoeller
ff9fb9aa88
BeanWrapperImpl.getPropertyDescriptor allows for nested paths again
...
Issue: SPR-13403
2015-08-28 11:17:42 +02:00
Juergen Hoeller
74e6213baf
Lookup method definitions can be overridden in child beans
...
Issue: SPR-13388
2015-08-25 17:08:49 +02:00
Juergen Hoeller
b198cad58e
SimpleAliasRegistry detects circles between non-canonical aliases as well (through hasAlias)
...
Additionally, as an optimization, we skip the re-registration step for existing aliases now.
Issue: SPR-13390
2015-08-25 17:06:23 +02:00
Juergen Hoeller
05a16a1bfa
Avoid ambiguous property warning for methods with multiple parameters
...
Issue: SPR-13349
2015-08-21 16:55:04 +02:00
Sam Brannen
f47bbb0d9e
Polish tests
2015-08-12 19:35:45 +02:00
Juergen Hoeller
e0f012f32d
Removal of redundant JdkVersion checks in the test suite
...
Issue: SPR-13312
2015-08-12 18:42:36 +02:00
Juergen Hoeller
edd6e76b9f
Polishing
2015-07-21 22:58:34 +02:00