public BaseContainer() { this.managedExecutorService = lookupManagedExecutorService(); this.managedScheduledExecutorService = lookupManagedScheduledExecutorService(); if (managedExecutorService == null || managedScheduledExecutorService == null) { // at least one of the managed executor services is null, a local one will be created instead threadFactory = new DaemonThreadFactory(); } else { // only managed executor services will be used, the thread factory won't be needed. threadFactory = null; } }
public BaseContainer() { this.managedExecutorService = lookupManagedExecutorService(); this.managedScheduledExecutorService = lookupManagedScheduledExecutorService(); if (managedExecutorService == null || managedScheduledExecutorService == null) { // at least one of the managed executor services is null, a local one will be created instead threadFactory = new DaemonThreadFactory(); } else { // only managed executor services will be used, the thread factory won't be needed. threadFactory = null; } }