Skip to content

Merge multiple lists/maps/sets that share the same id into a single map/list [SPR-5892] #10561

Closed

Description

@spring-projects-issues

Donny A. Wijaya opened SPR-5892 and commented

Add ability to merge multiple lists/maps/sets that share the same id into a map/list (through the use of flag).

Some frameworks require developers to provide a list of mapping location (inside classpath). This would not be a problem if everything is bundled in a war. But in modular deployment, we usually have the mapping files to be packaged inside jars where they belong. This new improvement would remove the responsibility to add every mapping file located in every new jar we deploy, into the the a mapping list resides in the main context file of the application.

For example:

JAR_A has a collectionContext.xml with a map/list with id "myList"
JAR_B has a collectionContext.xml with a map/list with id "myList"
WAR has an applicationContext.xml that imports classpath*:**/collectionContext.xml

This feature would allow the two maps to be merged into a map with id "myList".


Issue Links:

Activity

  1. spring-projects-issues commented on Apr 3, 2011

    @spring-projects-issues
    CollaboratorAuthor

    Chris Beams commented

    Duplicates #11189

  2. added
    type: enhancement
    in: core
    status: duplicate
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: corestatus: duplicatetype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions