Tapestry
  1. Tapestry
  2. TAPESTRY-1341

Allow service builders named "build" and determine service id from the result type

    Details

    • Type: New Feature New Feature
    • 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

      Threre's a strong pattern for service builders of the form:

      Foo buildFoo(...)

      { ... }

      In fact, virtually all service builders are of this form.

      Seems like a Dont Repeat Yourself violation.

      Foo build(...)

      {...}

      seems completely reasonable; determine the service id from the service interface name (the unqualified part).

      Obviously, the current behavior would be left for the reasonable cases where you need to provide a specific service id.

        Issue Links

          Activity

          Mark Thomas made changes -
          Workflow Default workflow, editable Closed status [ 12569192 ] jira [ 12590445 ]
          Mark Thomas made changes -
          Workflow jira [ 12399300 ] Default workflow, editable Closed status [ 12569192 ]
          Kalin Krustev made changes -
          Link This issue is related to TAPESTRY-1679 [ TAPESTRY-1679 ]
          Kalin Krustev made changes -
          Link This issue is cloned as TAPESTRY-1679 [ TAPESTRY-1679 ]
          Howard M. Lewis Ship made changes -
          Field Original Value New Value
          Fix Version/s 5.0.3 [ 12312338 ]
          Resolution Fixed [ 1 ]
          Assignee Howard M. Lewis Ship [ hlship ]
          Status Open [ 1 ] Closed [ 6 ]
          Howard M. Lewis Ship created issue -

            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