Juergen Hoeller
6117311906
QualifierAnnotationAutowireCandidateResolver calls BeanFactory.getType defensively
...
Issue: SPR-12191
(cherry picked from commit 73ce3b5 )
2014-10-22 17:14:02 +02:00
Juergen Hoeller
15c8987cc4
Polishing
2014-10-22 01:10:01 +02:00
Juergen Hoeller
ac4103d1b9
Further locking optimizations for the retrieval of non-singleton beans
...
Issue: SPR-12250
(cherry picked from commit 9d83281 )
2014-10-07 00:01:40 +02:00
Juergen Hoeller
d46c3fc7bf
Deprecated BeanDefinitionDocumentReader's setEnvironment method in favor of access via XmlReaderContext
...
Issue: SPR-12248
2014-09-26 22:17:58 +02:00
Juergen Hoeller
f21c8c37fb
Avoid use of fragile Swing classes in tests (for compatibility with JDK 8u40)
...
Issue: SPR-12235
(cherry picked from commit a80495b )
2014-09-26 21:40:09 +02:00
Juergen Hoeller
29abca5399
Explicit exclusion of bridge methods in annotation post-processors (for Java 8 compatibility)
...
Issue: SPR-12187
(cherry picked from commit f4219ca )
2014-09-19 00:11:44 +02:00
Juergen Hoeller
d07230cf6a
BeanDefinitionParserDelegate does not silently ignore 1.x 'singleton' attribute
...
Issue: SPR-12167
(cherry picked from commit 0cf472b )
2014-09-17 13:36:54 +02:00
Juergen Hoeller
bf881e4544
Log warning for single optional constructor when no default constructor to fall back to
...
Issue: SPR-12161
(cherry picked from commit 80cec01 )
2014-09-17 13:35:12 +02:00
Juergen Hoeller
f8b729aa5f
Polishing
2014-09-17 01:51:23 +02:00
Juergen Hoeller
b39e66b897
GenericTypeAwarePropertyDescriptor implements equals/hashCode for proper lookups on IBM JVM 6
...
Issue: SPR-12185
2014-09-17 01:42:30 +02:00
Juergen Hoeller
d2ef6dcb8d
Polishing
2014-09-03 13:49:37 +02:00
Juergen Hoeller
bff2bf2cdb
AbstractAutowireCapableBeanFactory avoids early FactoryBean instantiation on currently created configuration bean
...
Issue: SPR-12141
(cherry picked from commit 4432c41 )
2014-09-03 13:48:47 +02:00
Juergen Hoeller
21d0ce5af8
DefaultListableBeanFactory defensively handles BeanDefinition access in getBean(Class)
...
Issue: SPR-10542
(cherry picked from commit 9d3d6d5 )
2014-08-22 00:01:16 +02:00
Juergen Hoeller
0c0d23d0f4
Polishing
2014-08-15 00:58:05 +02:00
Juergen Hoeller
a31ebb6c1e
Polishing
2014-08-15 00:07:25 +02:00
Juergen Hoeller
a7492fa55b
Polishing
2014-08-12 22:24:50 +02:00
Juergen Hoeller
6e95b2613e
Polishing
2014-07-24 18:35:49 +02:00
Juergen Hoeller
dcb83c2daf
Autowiring rejects self references to a factory method on the same bean as well
...
Issue: SPR-12018
(cherry picked from commit 496492b )
2014-07-24 17:53:21 +02:00
Juergen Hoeller
452260316e
DefaultListableBeanFactory's registerBeanDefinition only calls resetBeanDefinition in case of pre-existing bean definition or pre-existing singleton instance
...
Issue: SPR-8318
(cherry picked from commit a4968b9 )
2014-07-24 17:43:59 +02:00
Juergen Hoeller
077c624b73
ConstructorResolver's exception message on null factory-bean hints at potential BeanPostProcessor involvement
...
Issue: SPR-11951
(cherry picked from commit 6c41cc3 )
2014-07-04 22:32:10 +02:00
Juergen Hoeller
ede2150544
Polishing
2014-07-02 17:32:43 +02:00
Juergen Hoeller
07edf11e21
Defensively check for pre-resolved FactoryBean.getObject() results in circular reference scenarios
...
Issue: SPR-11937
(cherry picked from commit d870b38 )
2014-07-02 00:23:32 +02:00
Juergen Hoeller
f27b9498be
CachedIntrospectionResults uses SoftReference instead of WeakReference for non-cache-safe entries
...
Issue: SPR-11867
2014-07-02 00:22:24 +02:00
Juergen Hoeller
b9935e9fe3
BeanFactoryAnnotationUtils consistently applies bean name fallback when no BeanDefinition present
...
Issue: SPR-11915
(cherry picked from commit f8b6114 )
2014-07-01 18:12:23 +02:00
Juergen Hoeller
48f753f368
Polishing (backported from master)
2014-07-01 12:12:42 +02:00
Juergen Hoeller
c32d5592c7
AbstractAutowireCapableBeanFactory's createBean/autowireBean/configureBean use CacheUtils.isCacheSafe to re-enable PropertyDescriptor caching
...
Issue: SPR-11875
(cherry picked from commit 974bd43 )
2014-07-01 12:07:26 +02:00
Juergen Hoeller
6403479902
TypeDescriptor's nested type traversal leniently returns null in case of unresolvable nested type
...
Issue: SPR-11898
(cherry picked from commit d663580 )
2014-07-01 12:00:20 +02:00
Juergen Hoeller
f94ded830d
Consistent use of ClassUtils.forName instead of class.getClassLoader().loadClass
...
Issue: SPR-11780
(cherry picked from commit 551950c )
2014-05-15 14:40:15 +02:00
Juergen Hoeller
c9417d0610
Fixed invalid code tag in javadoc
...
(cherry picked from commit a139670 )
2014-05-01 10:55:55 +02:00
Juergen Hoeller
bed739ce92
GenericBeanDefinition's toString() takes parent definition into account
...
Issue: SPR-9671
(cherry picked from commit 0ef29b2 )
2014-04-28 23:46:40 +02:00
Juergen Hoeller
59cef3ce81
General defensiveness about the bootstrap ClassLoader (i.e. null ClassLoader)
...
Issue: SPR-11721
2014-04-28 00:26:18 +02:00
Juergen Hoeller
d28c6d8bdb
Consistent documentation for both 'close' and 'shutdown' as inferred destroy methods
...
Issue: SPR-11680
(cherry picked from commit 14f9dbf )
2014-04-17 21:32:09 +02:00
Stephane Nicoll
4cd818b9e4
Harmonize log configuration
...
Prior to this commit, the codebase was using a mix of log4j.xml
and log4j.properties for test-related logging configuration. This
can be an issue as log4j takes the xml variant first when looking
for a default bootstrap configuration.
In practice, some modules declaring the properties variant were
taking the xml variant configuration from another module.
The general structure of the configuration has also been
harmonized to provide a standard console output as well as an
easy way to enable trace logs for the current module.
2014-03-20 09:43:29 -07:00
Juergen Hoeller
cf290ab42a
Extracted simple MethodInvokingBean as alternative to (and base class for) MethodInvokingFactoryBean
...
Issue: SPR-11196
2014-03-17 15:13:59 +01:00
Juergen Hoeller
5308b3e358
Revised naming for prototype inner beans to avoid excessive unique name calculation
...
Restored original singleton-only adaptInnerBeanName behavior, avoiding endless unique name calculation for every single prototype instance. Non-named inner BeanDefinition objects now suffixed with an identity hex code analogous to non-named XML bean definitions, largely avoiding naming collisions to begin with. After SPR-11246, post-processors can deal with unstable classes per bean name, so occasional collisions aren't a hard problem anymore.
Issue: SPR-11545
2014-03-14 20:38:09 +01:00
Sam Brannen
b364599278
Update links to Spring JIRA server
2014-03-10 12:26:29 +01:00
Juergen Hoeller
3dfa7e9ac0
Avoid stack overflow in case of circular type reference
...
Issue: SPR-11522
2014-03-07 00:08:15 +01:00
Juergen Hoeller
93c8b7ab04
DefaultListableBeanFactory only puts 'cache-safe' Class keys into its by-type cache
...
Issue: SPR-11520
2014-03-06 22:41:38 +01:00
Juergen Hoeller
7972b31118
SpringBeanELResolver's setValue should not throw PropertyNotWritableException if provided value is identical to current bean instance
...
Issue: SPR-11502
2014-03-06 14:17:54 +01:00
Juergen Hoeller
793cab4f80
Allow generics-based injection in case of nested unresolved type variable
...
Issue: SPR-11471
2014-03-06 14:13:33 +01:00
Juergen Hoeller
ad317774fb
instantiateUsingFactoryMethod avoids NPE and reports argument types in case of explicitArgs and resolved generic arguments as well
...
Issue: SPR-11517
2014-03-05 16:16:29 +01:00
Sam Brannen
206655c2b4
Polishing
2014-02-13 02:25:21 +01:00
Sam Brannen
8028eae786
Fix CGLIB memory leak for method injection
...
This commit continues the work for fixing memory leaks resulting from
CGLIB subclass generation for beans relying on method injection.
- Set proxy callbacks on the CGLIB Factory (i.e., the instance) instead
of in the generated subclass (i.e., via the Enhancer).
- Convert private inner classes in CglibSubclassingInstantiationStrategy
to private static classes in order to avoid unnecessary coupling to
classes generated using CGLIB.
- Tidy up XmlBeanFactoryTests.
- Update logic in serializableMethodReplacerAndSuperclass() so that it
finally aligns with the decision made for SPR-356.
Issue: SPR-10785, SPR-356
2014-02-13 01:45:41 +01:00
Juergen Hoeller
ce39146be8
Polishing
2014-02-13 01:08:35 +01:00
Juergen Hoeller
520ef9ec23
Polishing
...
Issue: SPR-11422
2014-02-12 23:48:37 +01:00
Juergen Hoeller
603cdea26e
resolveFactoryMethodIfPossible considers nonPublicAccessAllowed and SecurityManager
...
Issue: SPR-11422
2014-02-12 23:48:16 +01:00
Sam Brannen
9534245660
Exclude overloaded from equals & hashCode in MethodOverride
...
Prior to this commit, the inclusion of the 'overloaded' flag in the
implementations of equals() and hashCode() in MethodOverride could lead
to adverse effects in the outcome of equals() in AbstractBeanDefinition.
For example, given two bean definitions A and B that represent the
exact same bean definition metadata for a bean that relies on method
injection, if A has been validated and B has not, then A.equals(B) will
potentially return false, which is not acceptable behavior.
This commit addresses this issue by removing the 'overloaded' flag from
the implementations of equals() and hashCode() for MethodOverride.
Issue: SPR-11420
2014-02-12 16:56:03 +01:00
Sam Brannen
f77bf2422e
Polish Javadoc for LookupOverride and related code
2014-02-09 00:30:44 +01:00
Juergen Hoeller
8c4e372558
Introduced SpringNamingPolicy for CGLIB
...
Issue: SPR-11398
2014-02-06 20:25:11 +01:00
Juergen Hoeller
6634c19e6a
Related polishing
...
Issue: SPR-11386
2014-02-04 16:45:14 +01:00