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

        Howard M. Lewis Ship created issue -
        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.
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Assignee Howard M. Lewis Ship [ hlship ]
        Howard M. Lewis Ship made changes -
        Summary It should be possible to place the @Lifecycle annotation on the service interface, as well as on the builder method The @Scope annotaton should be allowed on service implementation classes (in addition to service builder methods inside a module class)
        Howard M. Lewis Ship made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 5.0.4 [ 12312381 ]
        Mark Thomas made changes -
        Workflow jira [ 12399103 ] Default workflow, editable Closed status [ 12568039 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12568039 ] jira [ 12591145 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        39d 4h 36m 1 Howard M. Lewis Ship 17/Apr/07 00:36

          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