Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-889

Provide fluent API for order constraints of contributions

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: 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()); }

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: