Tapestry 5
  1. Tapestry 5
  2. TAP5-1565

It should be easier to make a series of contributions to an OrderedConfiguration so that the contributions are in sequential orderer

    Details

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

      Description

      It is not uncommon to have a series of elements to add to an OrderedConfiguration in a specific order; it would be nice if there was a way to add sequential items without manually tracking each nodes name and adding "after:" clauses.

      Example:

      configuration.add("item1", new Item1());
      configuration.addSequential("item2", new Item2());
      configuration.addInstanceSequential("item3", Item3.class);

      This would simply add an "after:item1" ordering constraint for item2, and an "after:item3" constraint for item3.

      It should be legal to add an item sequentially, even if there is no previously added item (added in this contribution method, or elsewhere), in which case, no ordering constraint it added.

      Would "next" and "nextInstance" be better than "addSequential" and "addInstanceSequential"? I'm open to other suggestions on the naming.

        Issue Links

          Activity

          Thiago H. de Paula Figueiredo made changes -
          Link This issue relates to TAP5-2358 [ TAP5-2358 ]
          Howard M. Lewis Ship made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Howard M. Lewis Ship made changes -
          Summary OrderedConfiguration should have methods to make it easy to add elements in sequential order It should be easier to make a series of contributions to an OrderedConfiguration so that the contributions are in sequential orderer
          Howard M. Lewis Ship made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Howard M. Lewis Ship made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Fix Version/s 5.3 [ 12316024 ]
          Resolution Fixed [ 1 ]
          Howard M. Lewis Ship made changes -
          Field Original Value New Value
          Assignee Howard M. Lewis Ship [ hlship ]
          Howard M. Lewis Ship created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development