private void setDefaultValue(ErraiServiceConfigurator configurator) { if (defaultValue != null && !configurator.hasProperty(getAttributeName())) { configurator.setProperty(getAttributeName(), defaultValue); } }
private void setDefaultValue(final ErraiServiceConfigurator configurator) { if (defaultValue != null && !configurator.hasProperty(getAttributeName())) { configurator.setProperty(getAttributeName(), defaultValue); } }
if (cfg.hasProperty(CONFIG_ASYNC_DELIVERY_QUEUE_SIZE)) { deliveryQueueSize = Integer.parseInt(cfg.getProperty(CONFIG_ASYNC_DELIVERY_QUEUE_SIZE)); if (cfg.hasProperty(CONFIG_ASYNC_THREAD_POOL_SIZE)) { poolSize = Integer.parseInt(cfg.getProperty(CONFIG_ASYNC_THREAD_POOL_SIZE)); if (cfg.hasProperty(CONFIG_ASYNC_WORKER_TIMEOUT)) { workerTimeout = seconds(Integer.parseInt(cfg.getProperty(CONFIG_ASYNC_WORKER_TIMEOUT)));
private void setDefaultValue(ErraiServiceConfigurator configurator) { if (defaultValue != null && !configurator.hasProperty(getAttributeName())) { configurator.setProperty(getAttributeName(), defaultValue); } }
private void setDefaultValue(final ErraiServiceConfigurator configurator) { if (defaultValue != null && !configurator.hasProperty(getAttributeName())) { configurator.setProperty(getAttributeName(), defaultValue); } }
public void configure(ErraiConfig config) { logger.info("Configuring persistence extension."); if (!configurator.hasProperty("errai.persistence.factory.jndi.name")) { logger.info("Stopped configuring persistence extension, can't find errai.factory.jndi.name."); return;
if (cfg.hasProperty(CONFIG_ASYNC_DELIVERY_QUEUE_SIZE)) { deliveryQueueSize = Integer.parseInt(cfg.getProperty(CONFIG_ASYNC_DELIVERY_QUEUE_SIZE)); if (cfg.hasProperty(CONFIG_ASYNC_THREAD_POOL_SIZE)) { poolSize = Integer.parseInt(cfg.getProperty(CONFIG_ASYNC_THREAD_POOL_SIZE)); if (cfg.hasProperty(CONFIG_ASYNC_WORKER_TIMEOUT)) { workerTimeout = seconds(Integer.parseInt(cfg.getProperty(CONFIG_ASYNC_WORKER_TIMEOUT)));