Skip to content

Commit

Permalink
fix for gui thread pool, wls midpoint restart.
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Jun 26, 2014
1 parent cd26e4b commit dcfbac0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Expand Up @@ -36,7 +36,8 @@
*/
public class GuiComponents {

private static final ExecutorService EXECUTOR = Executors.newFixedThreadPool(10);
private static ExecutorService EXECUTOR;

private static final String KEY_BOOLEAN_NULL = "Boolean.NULL";
private static final String KEY_BOOLEAN_TRUE = "Boolean.TRUE";
private static final String KEY_BOOLEAN_FALSE = "Boolean.FALSE";
Expand All @@ -45,6 +46,10 @@ public static void destroy() {
EXECUTOR.shutdownNow();
}

public static void init() {
EXECUTOR = Executors.newFixedThreadPool(10);
}

public static <T> Future<T> submitCallable(Callable<T> callable) {
Validate.notNull(callable, "Callable must not be null.");

Expand Down
Expand Up @@ -118,6 +118,8 @@ public Class<PageDashboard> getHomePage() {
public void init() {
super.init();

GuiComponents.init();

getComponentInstantiationListeners().add(new SpringComponentInjector(this));

IResourceSettings resourceSettings = getResourceSettings();
Expand Down

0 comments on commit dcfbac0

Please sign in to comment.