[weld-issues] [JBoss JIRA] Commented: (WELDX-19) @ThreadScoped in SE

Peter Royle (JIRA) jira-events at lists.jboss.org
Thu Dec 10 08:36:31 EST 2009


    [ https://jira.jboss.org/jira/browse/WELDX-19?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12499216#action_12499216 ] 

Peter Royle commented on WELDX-19:
----------------------------------

Implemented and tested. Requires documentation.

> @ThreadScoped in SE
> -------------------
>
>                 Key: WELDX-19
>                 URL: https://jira.jboss.org/jira/browse/WELDX-19
>             Project: Weld Extensions
>          Issue Type: Feature Request
>          Components: Java SE
>         Environment: Java SE w/o EJB
>            Reporter: Peter Royle
>            Assignee: Peter Royle
>            Priority: Minor
>             Fix For: Java SE 1.0.0.CR3
>
>
> Create a @ThreadScoped annotation and ThreadContext which is simply backed by ThreadLocal. This enables:
> @ThreadScoped String str = "hello";
> to replace
> ThreadLocal<String> strTL = new ThreadLocal<String>();
> strTL.set("hello";

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list