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)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0
    • 5.0.4
    • tapestry-ioc
    • 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

            hlship Howard Lewis Ship
            hlship Howard Lewis Ship
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: