Tapestry
  1. Tapestry
  2. TAPESTRY-1323

Support caseless mapped service configurations

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0.3
    • Component/s: tapestry-ioc
    • Labels:
      None

      Description

      Many service configurations map a string to a some object. With the recent push towards caselessness, the raw Map<String,Object> is often converted to a CaseInsensitiveMap.

      This has two problems:
      1) There may be collisions in the raw map that are not noticed (i.e., "mybean" vs. "MyBean").
      2) There's the extra code required to create and CIM and load it from the configuration Map.

      tapestry-ioc should recognize builder method parameters of type CaseInsensitiveMap and treat them accordingly. Contribution methods should still see a MappedConfiguration parameter.

        Activity

        Howard M. Lewis Ship created issue -
        Hide
        Howard M. Lewis Ship added a comment -

        ... and it's automatic; it applies to any mapped configuration where the key type is java.lang.String.

        Show
        Howard M. Lewis Ship added a comment - ... and it's automatic; it applies to any mapped configuration where the key type is java.lang.String.
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Assignee Howard M. Lewis Ship [ hlship ]
        Fix Version/s 5.0.3 [ 12312338 ]
        Mark Thomas made changes -
        Workflow jira [ 12398999 ] Default workflow, editable Closed status [ 12567842 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12567842 ] jira [ 12590971 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        4d 4h 18m 1 Howard M. Lewis Ship 11/Mar/07 23:37

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Howard M. Lewis Ship
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development