Tapestry
  1. Tapestry
  2. TAPESTRY-1330

The @Scope annotaton should be allowed on service implementation classes (in addition to service builder methods inside a module class)

    Details

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

      Description

      In many cases, the design of a particular service interface is inextricably linked to the service lifecycle, such as @Lifecycle("perthread"). Being able to place this annotation on the service interface is of benefit because it is self documenting, and because it ensures that the service uses the lifecycle, if the developer forgets to place the annotation on the service builder method. @Lifecycle should be allowed on classes as well as methods to support this.

        Activity

        Hide
        Howard M. Lewis Ship added a comment -

        A variation of this is checked in; autobuilding a service allows the @Scope annotation (the renamed version of @Lifecycle) to be placed on the service implementation class.

        Show
        Howard M. Lewis Ship added a comment - A variation of this is checked in; autobuilding a service allows the @Scope annotation (the renamed version of @Lifecycle) to be placed on the service implementation class.

          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