Chris Beams
781e1fec1b
Fix assumption about file-based Resources in PropertiesLoaderSupport (SPR-7547)
...
When using PropertiesLoaderSupport implementations (principally
PropertyPlaceholderConfigurer), an assumption was made that any
Resource representing a set of properties must be file-based. SPR-7547
exposed the fact that if a non-file-based Resource implementation such
as ByteArrayResource were passed in, an IllegalStateException would be thrown
from the AbstractResource base class' implementation of getFilename().
This is now patched, and PropertiesLoaderSupport implementations treat
Resource implementations equally, regardless of file-orientation.
See also SPR-7552.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3680 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
f68aa25579
temporarily disabled constructor argument caching for converted values (SPR-7423)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3608 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
cf7b934199
added further test case for property type detection with generic interface
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3506 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Chris Beams
13bdd249b7
licensing header
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3468 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Chris Beams
49ae2e809d
attempted to repro SPR-7318 to no avail
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3467 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
6a843cde2b
BeanWrapper/DataBinder's "autoGrowNestedPaths" works for Maps as well (SPR-7285)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3446 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
f15338b7dd
DefaultListableBeanFactory checks for alias circle on registerAlias (avoiding endless loop; SPR-7274)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3409 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
c9ca1d03e2
added test for getType against an abstract FactoryBean
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3375 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Arjen Poutsma
f0544b5aad
Added DeprecatedBeanWarner
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3343 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
4840f1da39
BeanDefinitionVisitor/PropertyPlaceholderConfigurer finds and resolves values in arrays as well (SPR-7136)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3307 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Chris Beams
116848fb6d
getBean(Class<?>) now filters out bean definitions for which isAutowireCandidate() is false (SPR-7120)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3287 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
0f49919d33
fixed constructor argument caching for prototypes with multiple constructor matches (SPR-7084)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3244 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
1b180b3e0e
fixed URI construction to consider fragment as well (SPR-7083)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3237 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
450b60b11b
call setAccessible for public final field too (SPR-7078)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3236 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
d2000690b5
ObjectFactoryCreatingFactoryBean creates a serializable ObjectFactory reference; added ProviderCreatingFactoryBean, exposing a serializable JSR-330 Provider reference (SPR-6998)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3191 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Chris Beams
22b34b3687
incorrectly invoked factory methods now result in exceptions with more descriptive messages (SPR-5475)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3177 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Chris Beams
9cc8d7ef91
SPR-7009, SPR-6972: backed out unintentionally committed tests
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3145 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Chris Beams
20719a4b27
SPR-6972: removed import
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3143 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Chris Beams
667eed1794
SPR-6972: failed attempt to reproduce issue
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3142 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
47871d47e2
autowire="byType" ignores parameter name when choosing a primary bean, as defined (SPR-6917)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3075 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
f9f4b33552
do not try to convert read-only Collections/Maps (SPR-6808)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2932 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Costin Leau
18afcd07c3
SPR-3709
...
+ improved example to work with multi-nested declarations
+ used JDK 5 syntax
+ added documentation code into trunk (including unit test) for easier future reference
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2867 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
e1e257ea1a
bean properties of type enum array/collection can be populated with comma-separated String (SPR-6547)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2635 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Keith Donald
9d1daf3232
found hotspot; added ConverisonServiceFactoryBean
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2473 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
39bf8dc02e
added chaining-capable "add" method to MutablePropertyValues
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2462 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Keith Donald
12b6feacac
moved generic converter to spi; added entity converter; removed various service impls in favor of service factory
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2447 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
David Syer
d349ea9ea6
RESOLVED - issue SPR-6366: Cannot import bean definitions using classpath*: resource location
...
http://jira.springframework.org/browse/SPR-6366
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2444 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
ad0168d2f7
child bean definition's scope attribute can be inherited from parent bean definition now (SPR-3542)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2363 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Arjen Poutsma
27d3926a16
SPR-6005 - org.springframework.beans.propertyeditors.URIEditor does double escaping for % signes for URIs that contain a schema
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2295 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
David Syer
df6e46b128
RESOLVED - issue SPR-6195
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2194 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
0a9a69b6c9
added first cut of getBean(Class) lookup method
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2164 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
bac9fee0be
CustomEditorConfigurer supports PropertyEditor instances again (with deprecation warning); for XFire compatibility (SPR-6157)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2036 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Keith Donald
06201b5eb4
SPR-6032 & SPR-6033: Auto grow nested path enhancements to BeanWrapper
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2030 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
7d68ca8992
PropertyPlaceholderConfigurer supports "${myKey:myDefaultValue}" defaulting syntax
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1994 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
7f532b126d
PropertyOverrideConfigurer's "ignoreInvalidKeys" ignores invalid property names as well (SPR-5792)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1987 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
56d0246713
adapted to Converter signature change
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1908 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Rob Harrop
b4f29862b1
[SPR-6063] fixed issue with inconsistent views of PropertyDescriptors
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1900 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
856b7edc51
protected @Autowired method can be overridden with non-annotated method to suppress injection; private @Autowired methods with same signature will be called individually across a hierarchy (SPR-6112)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1897 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
a65d974b14
initial JSR-330 injection support
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1894 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Rob Harrop
fc6156dde9
[SPR-5644] Support for Enum<?> and Enum<T> values as FQN.FIELD_NAME in type conversion
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1869 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
641f1eb58d
BeanFactory prefers local primary bean to primary bean in parent factory (SPR-5871)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1857 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Rob Harrop
b98d52b16b
[SPR-3635] [SPR-5039] [SPR-5813] JMX annotation inheritance fixed
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1852 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
54f08aeb88
added copy of SerializationTestUtils to beans module
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1851 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
1e16aecadd
BeanFactory supports ObjectFactory as a dependency type for @Autowired and @Value (SPR-6079)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1850 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
317022ee8e
initial JSR-303 Bean Validation support; revised ConversionService and FormatterRegistry
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1836 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
dacde6959a
fixed accidental test failures
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1760 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
1cbc4ac602
try to create unknown collection implementation types via default constructor
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1759 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Costin Leau
b3f6d339c0
+ update copyright dates on some files
...
+ migrated test from JUnit 3 to 4
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1725 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
2194ae2c67
revised core conversion package for BeanWrapper/BeanFactory integration
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1721 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Costin Leau
c8a037ce93
+ added fine grained privileged blocks to preserve the caller security stack when invoking the callee
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1708 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago