Tapestry 5
  1. Tapestry 5
  2. TAP5-889

Provide fluent API for order constraints of contributions

    Details

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

      Description

      It is a pain to create order constraint for contributions because of the hard coded string "before" and "after".
      It would be nice to have a fluent API for this.

      public static void contributeMasterDispatcher(final OrderedConfiguration<Dispatcher> configuration)

      { configuration.addInstance("MyDispatcher", MyDispatcher.class, before("PageRender").after("ComponentEvent").build()); }

        Activity

        Hide
        Massimo Lusetti added a comment -

        This would be awesome!

        Show
        Massimo Lusetti added a comment - This would be awesome!

          People

          • Assignee:
            Igor Drobiazko
            Reporter:
            Igor Drobiazko
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development