Uploaded image for project: '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
    • Status: Closed
    • Priority: 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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: