Juergen Hoeller
9b26e4f1ad
Avoid potential deadlocks between event multicaster and singleton registry through shared lock
...
Issue: SPR-12739
(cherry picked from commit 772552b )
11 years ago
Juergen Hoeller
568e963466
Annotation post-processors clear old InjectionMetadata registrations on refresh
...
Issue: SPR-12526
(cherry picked from commit e118086 )
11 years ago
Juergen Hoeller
ec3967a6c7
Consistent bridge method handling in annotation post-processors
...
Issue: SPR-12495
Issue: SPR-12187
(cherry picked from commit d97add0 )
11 years ago
Juergen Hoeller
9413204838
Polishing
...
(cherry picked from commit 50c578c )
11 years ago
Juergen Hoeller
0e3b26da27
ExtendedBeanInfo ignores invalid bean properties (analogous to the JavaBeans Introspector)
...
Issue: SPR-12434
(cherry picked from commit b45f1aa )
11 years ago
Juergen Hoeller
d5e4592728
Polishing
12 years ago
Juergen Hoeller
233393e3d5
Test for <util:map> with LinkedCaseInsensitiveMap and specified key/value types, with corresponding 3.2.x fix
...
Issue: SPR-10994
(cherry picked from commit de8645b )
12 years ago
Juergen Hoeller
7d44c7cb51
QualifierAnnotationAutowireCandidateResolver calls BeanFactory.getType defensively
...
Issue: SPR-12191
(cherry picked from commit 73ce3b5 )
12 years ago
Juergen Hoeller
de3ea5dad6
Deprecated BeanDefinitionDocumentReader's setEnvironment method in favor of access via XmlReaderContext
...
Issue: SPR-12248
12 years ago
Juergen Hoeller
a1538a451a
Further locking optimizations for the retrieval of non-singleton beans
...
Issue: SPR-12250
(cherry picked from commit ac4103d )
12 years ago
Juergen Hoeller
5cf452463e
Log warning for single optional constructor when no default constructor to fall back to
...
Issue: SPR-12161
(cherry picked from commit 80cec01 )
12 years ago
Juergen Hoeller
e819999c08
Polishing
12 years ago
Juergen Hoeller
d18bdf6448
Polishing
...
(cherry picked from commit d2ef6dc )
12 years ago
Juergen Hoeller
5da8a16284
AbstractAutowireCapableBeanFactory avoids early FactoryBean instantiation on currently created configuration bean
...
Issue: SPR-12141
(cherry picked from commit 4432c41 )
12 years ago
Juergen Hoeller
e89f18bf6d
DefaultListableBeanFactory defensively handles BeanDefinition access in getBean(Class)
...
Issue: SPR-10542
(cherry picked from commit 9d3d6d5 )
12 years ago
Juergen Hoeller
0492c9955c
Polishing
...
(cherry picked from commit a31ebb6 )
12 years ago
Juergen Hoeller
0c89279d61
Polishing
12 years ago
Juergen Hoeller
c0a4631fd1
Polishing
12 years ago
Juergen Hoeller
ab9d947c08
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 )
12 years ago
Juergen Hoeller
83a7deb594
ConstructorResolver's exception message on null factory-bean hints at potential BeanPostProcessor involvement
...
Issue: SPR-11951
(cherry picked from commit 6c41cc3 )
12 years ago
Juergen Hoeller
010d8b8c89
Defensively check for pre-resolved FactoryBean.getObject() results in circular reference scenarios
...
Issue: SPR-11937
(cherry picked from commit 07edf11 )
12 years ago
Juergen Hoeller
8307447235
CachedIntrospectionResults uses SoftReference instead of WeakReference for non-cache-safe entries
...
Issue: SPR-11867
(cherry picked from commit f27b949 )
12 years ago
Juergen Hoeller
67ebef6b32
BeanFactoryAnnotationUtils consistently applies bean name fallback when no BeanDefinition present
...
Issue: SPR-11915
(cherry picked from commit b9935e9 )
12 years ago
Juergen Hoeller
c033f889bf
Polishing (backported from master)
...
(cherry picked from commit 48f753f )
12 years ago
Juergen Hoeller
f4062bc758
AbstractAutowireCapableBeanFactory's createBean/autowireBean/configureBean use CacheUtils.isCacheSafe to re-enable PropertyDescriptor caching
...
Issue: SPR-11875
(cherry picked from commit c32d559 )
12 years ago
Juergen Hoeller
a139670286
Fixed invalid code tag in javadoc
12 years ago
Juergen Hoeller
a5606a6c46
Polishing
12 years ago
Juergen Hoeller
b13c5b2378
GenericBeanDefinition's toString() takes parent definition into account
...
Issue: SPR-9671
(cherry picked from commit 0ef29b2 )
12 years ago
Juergen Hoeller
9e2060707a
General defensiveness about the bootstrap ClassLoader (i.e. null ClassLoader)
...
Issue: SPR-11721
12 years ago
Juergen Hoeller
5aa93674a3
Consistent documentation for both 'close' and 'shutdown' as inferred destroy methods
...
Issue: SPR-11680
(cherry picked from commit 14f9dbf )
12 years ago
Juergen Hoeller
5c3f6a1571
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
(cherry picked from commit 5308b3e )
12 years ago
Juergen Hoeller
f1ba789494
DefaultListableBeanFactory only puts 'cache-safe' Class keys into its by-type cache
...
Issue: SPR-11520
(cherry picked from commit 93c8b7a )
12 years ago
Juergen Hoeller
d642cd21bb
SpringBeanELResolver's setValue should not throw PropertyNotWritableException if provided value is identical to current bean instance
...
Issue: SPR-11502
(cherry picked from commit 7972b31 )
12 years ago
Juergen Hoeller
7e2a214f32
instantiateUsingFactoryMethod avoids NPE and reports argument types in case of explicitArgs and resolved generic arguments as well
...
Issue: SPR-11517
(cherry picked from commit ad31777 )
12 years ago
Juergen Hoeller
b40403cdc9
Polishing
...
Issue: SPR-11422
(cherry picked from commit 520ef9e )
12 years ago
Juergen Hoeller
0972582880
resolveFactoryMethodIfPossible considers nonPublicAccessAllowed and SecurityManager
...
Issue: SPR-11422
(cherry picked from commit 603cdea )
12 years ago
Sam Brannen
9f77ef4102
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
(cherry picked from commit 9534245 )
12 years ago
Juergen Hoeller
f558396e91
Introduced SpringNamingPolicy for CGLIB
...
Issue: SPR-11398
(cherry picked from commit 8c4e372 )
12 years ago
Juergen Hoeller
60b24cffdb
Related polishing
...
Issue: SPR-11386
(cherry picked from commit 6634c19 )
12 years ago
Juergen Hoeller
35753eb54d
Backported test for fallback for non-resolvable property type
...
(cherry picked from commit 8570f60 )
12 years ago
Juergen Hoeller
d26a570192
Polishing
12 years ago
Juergen Hoeller
ac3c670f70
Fixed type resolution in case of inconsistencies between read and write method
...
Issue: SPR-11361
12 years ago
Juergen Hoeller
e07ad5a19b
Polishing
12 years ago
Juergen Hoeller
87179b075b
Optimized Introspector.flushFromCaches calls to skip Object.class
...
Issue: SPR-11356
12 years ago
Juergen Hoeller
866c7847e3
Introduced SpringProperties class and optional "spring.properties" file
...
This in particular allows for specifying "spring.getenv.ignore" and "spring.beaninfo.ignore" in a local way within the application, in case that JVM-level system properties are locked.
Issue: SPR-9014
Issue: SPR-11297
(cherry picked from commit 8543b91 )
12 years ago
Juergen Hoeller
fdd31c0e66
Preserve visitBeanDefinition stacktrace in BeanDefinitionStoreException
...
Issue: SPR-11346
12 years ago
Juergen Hoeller
d9ab6aaf6c
Revised RootBeanDefinition's externallyManaged* Sets to rely on postProcessingLock
...
This allows us to avoid early initialization of footprint-heavy ConcurrentHashMaps, and reuses the existing postProcessingLock which will typically be active already when registerExternallyManaged* calls come in from the bean factory's post-processing phase.
Issue: SPR-11343
(cherry picked from commit a599b57 )
12 years ago
Juergen Hoeller
52c11eab41
Polishing
...
(cherry picked from commit e670f4e )
12 years ago
Juergen Hoeller
b6362c5016
Introduced "spring.getenv.ignore" system property for preventing System.getenv calls
...
Issue: SPR-11297
(cherry picked from commit 961f42b )
12 years ago
Juergen Hoeller
f88cbda6ef
Introduced "spring.beaninfo.ignore" system property for optimized Introspector usage
...
Issue: SPR-9014
12 years ago