Skip to content

add varags constructor for ClassPathXmlApplicationContext and FileSystemXmlApplicationContext [SPR-6849] #11515

Closed
@spring-projects-issues

Description

@spring-projects-issues

Michael Isvy opened SPR-6849 and commented

Currently the syntax for those constructors is a little verbose:

new ClassPathXmlApplicationContext(new String[] {
        "com/acme/dao/dao-config.xml", "com/acme/service/service-config.xml"} );

Now that Spring 3.0 uses Java 5+ syntax, it would be simpler if we could take advantage of varags as follows:

new ClassPathXmlApplicationContext("com/acme/dao/dao-config.xml", "com/acme/service/service-config.xml");

Affects: 3.0 GA

Referenced from: commits 60ac239

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions