Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
FixedThreadExecutors |
|
| 1.0;1 |
1 | package org.jbehave.core.embedder.executors; | |
2 | ||
3 | import java.util.concurrent.ExecutorService; | |
4 | import java.util.concurrent.Executors; | |
5 | ||
6 | import org.jbehave.core.embedder.EmbedderControls; | |
7 | ||
8 | /** | |
9 | * Creates instances of {@link Executors.newFixedThreadPool(int)}. | |
10 | */ | |
11 | 15 | public class FixedThreadExecutors implements ExecutorServiceFactory { |
12 | ||
13 | public ExecutorService create(EmbedderControls controls) { | |
14 | 15 | return Executors.newFixedThreadPool(controls.threads()); |
15 | } | |
16 | ||
17 | } |