[arquillian-issues] [JBoss JIRA] (ARQ-1654) Expose an ExecutorService to help Extension with multithreading

Lukáš Fryč (JIRA) issues at jboss.org
Wed Feb 26 16:12:47 EST 2014


    [ https://issues.jboss.org/browse/ARQ-1654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12948507#comment-12948507 ] 

Lukáš Fryč edited comment on ARQ-1654 at 2/26/14 4:11 PM:
----------------------------------------------------------

In Warp, I have implemented the idea of [OperationalContexts|https://github.com/arquillian/arquillian-extension-warp/blob/master/impl/src/main/java/org/jboss/arquillian/warp/impl/client/context/operation/OperationalContexts.java]:

* you can choose what contexts you want to propagate (e.g. what is a lifespan of the callable)
* it reflects the hierarchy (nesting) of contexts
* allows extensions for custom contexts

Additional there is [Contextualizer|https://github.com/arquillian/arquillian-extension-warp/blob/master/impl/src/main/java/org/jboss/arquillian/warp/impl/client/context/operation/Contextualizer.java#L62] that you provide with either OperationalContext or its Retriever and it will make the given instance invocations to activate appropriate contexts.
                
      was (Author: lfryc):
    In Warp, I have implemented the idea of [OperationalContexts|https://github.com/arquillian/arquillian-extension-warp/blob/master/impl/src/main/java/org/jboss/arquillian/warp/impl/client/context/operation/OperationalContexts.java]:

* you can choose what contexts you want to propagate (e.g. what is a lifespan of the callable)
* it reflects the hierarchy (nesting) of contexts
* allows extensions for custom contexts
                  
> Expose an ExecutorService to help Extension with multithreading
> ---------------------------------------------------------------
>
>                 Key: ARQ-1654
>                 URL: https://issues.jboss.org/browse/ARQ-1654
>             Project: Arquillian
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Base Implementation
>    Affects Versions: 1.1.3.Final
>            Reporter: Aslak Knutsen
>            Assignee: Aslak Knutsen
>             Fix For: 2.0.0.Beta1
>
>
> Expose a Service to execute Callable's and Runnable's within a Inherited context.
> The general idea is to hide the complexity of reactivating the current Contextual information on the new Thread. 
> ExecutorService needs to be a limited view of the java.utl.concurrent.ExecutorService to avoid 'abuse' like shutdown being called prematurely. 
> The submit\(\*\) methods should probably be enough.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the arquillian-issues mailing list