static Object getValue(ConfigurationKey key, WeldConfiguration configuration) { Object defaultValue = key.getDefaultValue(); Object value = null; if (defaultValue instanceof Boolean) { value = configuration.getBooleanProperty(key); } else if (defaultValue instanceof Long) { value = configuration.getLongProperty(key); } else if (defaultValue instanceof Integer) { value = configuration.getIntegerProperty(key); } else if (defaultValue instanceof String) { value = configuration.getStringProperty(key); } return value; }
static Object getValue(ConfigurationKey key, WeldConfiguration configuration) { Object defaultValue = key.getDefaultValue(); Object value = null; if (defaultValue instanceof Boolean) { value = configuration.getBooleanProperty(key); } else if (defaultValue instanceof Long) { value = configuration.getLongProperty(key); } else if (defaultValue instanceof Integer) { value = configuration.getIntegerProperty(key); } else if (defaultValue instanceof String) { value = configuration.getStringProperty(key); } return value; }
static Object getValue(ConfigurationKey key, WeldConfiguration configuration) { Object defaultValue = key.getDefaultValue(); Object value = null; if (defaultValue instanceof Boolean) { value = configuration.getBooleanProperty(key); } else if (defaultValue instanceof Long) { value = configuration.getLongProperty(key); } else if (defaultValue instanceof Integer) { value = configuration.getIntegerProperty(key); } else if (defaultValue instanceof String) { value = configuration.getStringProperty(key); } return value; }
static Object getValue(ConfigurationKey key, WeldConfiguration configuration) { Object defaultValue = key.getDefaultValue(); Object value = null; if (defaultValue instanceof Boolean) { value = configuration.getBooleanProperty(key); } else if (defaultValue instanceof Long) { value = configuration.getLongProperty(key); } else if (defaultValue instanceof Integer) { value = configuration.getIntegerProperty(key); } else if (defaultValue instanceof String) { value = configuration.getStringProperty(key); } return value; }
static Object getValue(ConfigurationKey key, WeldConfiguration configuration) { Object defaultValue = key.getDefaultValue(); Object value = null; if (defaultValue instanceof Boolean) { value = configuration.getBooleanProperty(key); } else if (defaultValue instanceof Long) { value = configuration.getLongProperty(key); } else if (defaultValue instanceof Integer) { value = configuration.getIntegerProperty(key); } else if (defaultValue instanceof String) { value = configuration.getStringProperty(key); } return value; }
static Object getValue(ConfigurationKey key, WeldConfiguration configuration) { Object defaultValue = key.getDefaultValue(); Object value = null; if (defaultValue instanceof Boolean) { value = configuration.getBooleanProperty(key); } else if (defaultValue instanceof Long) { value = configuration.getLongProperty(key); } else if (defaultValue instanceof Integer) { value = configuration.getIntegerProperty(key); } else if (defaultValue instanceof String) { value = configuration.getStringProperty(key); } return value; }
static Object getValue(ConfigurationKey key, WeldConfiguration configuration) { Object defaultValue = key.getDefaultValue(); Object value = null; if (defaultValue instanceof Boolean) { value = configuration.getBooleanProperty(key); } else if (defaultValue instanceof Long) { value = configuration.getLongProperty(key); } else if (defaultValue instanceof Integer) { value = configuration.getIntegerProperty(key); } else if (defaultValue instanceof String) { value = configuration.getStringProperty(key); } return value; }
public static ExecutorServices create(ResourceLoader loader, WeldConfiguration configuration) { final int threadPoolSize = configuration.getIntegerProperty(ConfigurationKey.EXECUTOR_THREAD_POOL_SIZE); final boolean debug = configuration.getBooleanProperty(ConfigurationKey.EXECUTOR_THREAD_POOL_DEBUG); final ThreadPoolType threadPoolType = initThreadPoolType(configuration); final long threadPoolKeepAliveTime = configuration.getLongProperty(ConfigurationKey.EXECUTOR_THREAD_POOL_KEEP_ALIVE_TIME); if (debug) { return enableDebugMode(constructExecutorServices(threadPoolType, threadPoolSize, threadPoolKeepAliveTime)); } else { return constructExecutorServices(threadPoolType, threadPoolSize, threadPoolKeepAliveTime); } }
public static ExecutorServices create(ResourceLoader loader, WeldConfiguration configuration) { final int threadPoolSize = configuration.getIntegerProperty(ConfigurationKey.EXECUTOR_THREAD_POOL_SIZE); final boolean debug = configuration.getBooleanProperty(ConfigurationKey.EXECUTOR_THREAD_POOL_DEBUG); final ThreadPoolType threadPoolType = initThreadPoolType(configuration); final long threadPoolKeepAliveTime = configuration.getLongProperty(ConfigurationKey.EXECUTOR_THREAD_POOL_KEEP_ALIVE_TIME); if (debug) { return enableDebugMode(constructExecutorServices(threadPoolType, threadPoolSize, threadPoolKeepAliveTime)); } else { return constructExecutorServices(threadPoolType, threadPoolSize, threadPoolKeepAliveTime); } }
public static ExecutorServices create(ResourceLoader loader, WeldConfiguration configuration) { final int threadPoolSize = configuration.getIntegerProperty(ConfigurationKey.EXECUTOR_THREAD_POOL_SIZE); final boolean debug = configuration.getBooleanProperty(ConfigurationKey.EXECUTOR_THREAD_POOL_DEBUG); final ThreadPoolType threadPoolType = initThreadPoolType(configuration); final long threadPoolKeepAliveTime = configuration.getLongProperty(ConfigurationKey.EXECUTOR_THREAD_POOL_KEEP_ALIVE_TIME); if (debug) { return enableDebugMode(constructExecutorServices(threadPoolType, threadPoolSize, threadPoolKeepAliveTime)); } else { return constructExecutorServices(threadPoolType, threadPoolSize, threadPoolKeepAliveTime); } }
public static ExecutorServices create(ResourceLoader loader, WeldConfiguration configuration) { final int threadPoolSize = configuration.getIntegerProperty(ConfigurationKey.EXECUTOR_THREAD_POOL_SIZE); final boolean debug = configuration.getBooleanProperty(ConfigurationKey.EXECUTOR_THREAD_POOL_DEBUG); final ThreadPoolType threadPoolType = initThreadPoolType(configuration); final long threadPoolKeepAliveTime = configuration.getLongProperty(ConfigurationKey.EXECUTOR_THREAD_POOL_KEEP_ALIVE_TIME); if (debug) { return enableDebugMode(constructExecutorServices(threadPoolType, threadPoolSize, threadPoolKeepAliveTime)); } else { return constructExecutorServices(threadPoolType, threadPoolSize, threadPoolKeepAliveTime); } }
public static ExecutorServices create(ResourceLoader loader, WeldConfiguration configuration) { final int threadPoolSize = configuration.getIntegerProperty(ConfigurationKey.EXECUTOR_THREAD_POOL_SIZE); final boolean debug = configuration.getBooleanProperty(ConfigurationKey.EXECUTOR_THREAD_POOL_DEBUG); final ThreadPoolType threadPoolType = initThreadPoolType(configuration); final long threadPoolKeepAliveTime = configuration.getLongProperty(ConfigurationKey.EXECUTOR_THREAD_POOL_KEEP_ALIVE_TIME); if (debug) { return enableDebugMode(constructExecutorServices(threadPoolType, threadPoolSize, threadPoolKeepAliveTime)); } else { return constructExecutorServices(threadPoolType, threadPoolSize, threadPoolKeepAliveTime); } }
public static ExecutorServices create(ResourceLoader loader, WeldConfiguration configuration) { final int threadPoolSize = configuration.getIntegerProperty(ConfigurationKey.EXECUTOR_THREAD_POOL_SIZE); final boolean debug = configuration.getBooleanProperty(ConfigurationKey.EXECUTOR_THREAD_POOL_DEBUG); final ThreadPoolType threadPoolType = initThreadPoolType(configuration); final long threadPoolKeepAliveTime = configuration.getLongProperty(ConfigurationKey.EXECUTOR_THREAD_POOL_KEEP_ALIVE_TIME); if (debug) { return enableDebugMode(constructExecutorServices(threadPoolType, threadPoolSize, threadPoolKeepAliveTime)); } else { return constructExecutorServices(threadPoolType, threadPoolSize, threadPoolKeepAliveTime); } }
int preloaderThreadPoolSize = configuration.getIntegerProperty(ConfigurationKey.PRELOADER_THREAD_POOL_SIZE); if (preloaderThreadPoolSize > 0 && Permissions.hasPermission(Permissions.MODIFY_THREAD_GROUP)) { preloader = new ContainerLifecycleEventPreloader(preloaderThreadPoolSize, observerNotificationService.getGlobalLenientObserverNotifier());
int preloaderThreadPoolSize = configuration.getIntegerProperty(ConfigurationKey.PRELOADER_THREAD_POOL_SIZE); if (preloaderThreadPoolSize > 0 && Permissions.hasPermission(Permissions.MODIFY_THREAD_GROUP)) { preloader = new ContainerLifecycleEventPreloader(preloaderThreadPoolSize, observerNotificationService.getGlobalLenientObserverNotifier());
int preloaderThreadPoolSize = configuration.getIntegerProperty(ConfigurationKey.PRELOADER_THREAD_POOL_SIZE); if (preloaderThreadPoolSize > 0 && Permissions.hasPermission(Permissions.MODIFY_THREAD_GROUP)) { preloader = new ContainerLifecycleEventPreloader(preloaderThreadPoolSize, observerNotificationService.getGlobalLenientObserverNotifier());
int preloaderThreadPoolSize = configuration.getIntegerProperty(ConfigurationKey.PRELOADER_THREAD_POOL_SIZE); if (preloaderThreadPoolSize > 0 && Permissions.hasPermission(Permissions.MODIFY_THREAD_GROUP)) { preloader = new ContainerLifecycleEventPreloader(preloaderThreadPoolSize, observerNotificationService.getGlobalLenientObserverNotifier());
int preloaderThreadPoolSize = configuration.getIntegerProperty(ConfigurationKey.PRELOADER_THREAD_POOL_SIZE); if (preloaderThreadPoolSize > 0 && Permissions.hasPermission(Permissions.MODIFY_THREAD_GROUP)) { preloader = new ContainerLifecycleEventPreloader(preloaderThreadPoolSize, observerNotificationService.getGlobalLenientObserverNotifier());
int preloaderThreadPoolSize = configuration.getIntegerProperty(ConfigurationKey.PRELOADER_THREAD_POOL_SIZE); if (preloaderThreadPoolSize > 0 && Permissions.hasPermission(Permissions.MODIFY_THREAD_GROUP)) { preloader = new ContainerLifecycleEventPreloader(preloaderThreadPoolSize, observerNotificationService.getGlobalLenientObserverNotifier());