[ 
https://issues.apache.org/jira/browse/TAPESTRY-1330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12489269
 ] 

Howard M. Lewis Ship commented on TAPESTRY-1330:
------------------------------------------------

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.

> It should be possible to place the @Lifecycle annotation on the service 
> interface, as well as on the builder method
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1330
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1330
>             Project: Tapestry
>          Issue Type: New Feature
>          Components: tapestry-ioc
>    Affects Versions: 5.0
>            Reporter: Howard M. Lewis Ship
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to