[ 
https://jira.codehaus.org/browse/JBEHAVE-757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mauro Talevi updated JBEHAVE-757:
---------------------------------

    Description: 
Currently the ExecutorService can be specified programmatically via the 
Embedder.  

To allow a non-programmatic configuration, we can introduce an interface 

{code}
public interface ExecutorServiceFactory {

    ExecutorService create(EmbedderControls controls);
    
}
{code}

and provide multiple implementations, e.g. FixedThreadExecutors and 
SameThreadExecutors. 

The implementation class must support a default constructor so it can be 
instantiated from its class name, configured via Maven or Ant.

Each implementation may require different parameters from the EmbedderControls.


  was:
Currently the ExecutorService can be specified programmatically via the 
Embedder.  

To allow a non-programmatic configuration, we can introduce an interface 

{code}
public interface ExecutorServiceFactory {

    ExecutorService create(Map<String,Object> parameters);
    
}
{code}

and provide multiple implementations, e.g. FixedThreadExecutors and 
SameThreadExecutors. 

The implementation class must support a default constructor so it can be 
instantiated from its class name, configured via Maven or Ant.

Each implementation may require different parameters.

    
> Allow non-programmatic configuration of ExecutorService
> -------------------------------------------------------
>
>                 Key: JBEHAVE-757
>                 URL: https://jira.codehaus.org/browse/JBEHAVE-757
>             Project: JBehave
>          Issue Type: Improvement
>          Components: Ant Tasks, Core, Maven Plugin
>    Affects Versions: 3.6
>            Reporter: Mauro Talevi
>            Assignee: Mauro Talevi
>            Priority: Minor
>             Fix For: 3.6.1
>
>
> Currently the ExecutorService can be specified programmatically via the 
> Embedder.  
> To allow a non-programmatic configuration, we can introduce an interface 
> {code}
> public interface ExecutorServiceFactory {
>     ExecutorService create(EmbedderControls controls);
>     
> }
> {code}
> and provide multiple implementations, e.g. FixedThreadExecutors and 
> SameThreadExecutors. 
> The implementation class must support a default constructor so it can be 
> instantiated from its class name, configured via Maven or Ant.
> Each implementation may require different parameters from the 
> EmbedderControls.

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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to