Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for arrays inside the xml configuration (<array> element) [SPR-5543] #10214

Closed
spring-projects-issues opened this issue Mar 3, 2009 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Costin Leau opened SPR-5543 and commented

Please add support for <array> to the beans schema. An example definition would like this:

<osgi:component id="arrayExample" class="example.ArrayBean">

<property name="myInts">
<array value-type="int">
<value>1</value>
<value>2</value>
<value>3</value>
<value>5</value>
<value>8</value>
</array>
</property>
<property name="myStrings">
<array value-type="java.lang.String">
<value>one</value>
<value>two</value>
<value>three</value>
<value>five</value>
<value>eight</value>
</array>
</property>
</osgi:component>
It would be nice if the array could try to determine the its type automatically (i.e. check the type of its elements and determine the lowest common class). However, this might be problematic when conversion is involved so maybe it's best for now to require the array type.


Affects: 3.0 M2

Referenced from: commits 1b5812d

@spring-projects-issues spring-projects-issues added type: enhancement A general enhancement in: core Issues in core modules (aop, beans, core, context, expression) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.0 M3 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants