private TaskManager resolveTaskManager(final ErraiServiceConfigurator config) { TaskManager result; final String tmProp = config.getProperty("errai.taskmanager_implementation"); if (tmProp != null) { try { final Class<?> tm = DefaultResources.class.getClassLoader().loadClass( tmProp); result = (TaskManager) tm.newInstance(); } catch (Exception e) { throw new RuntimeException("Failed to load task manager", e); } } else { result = DefaultTaskManager.get(); } return result; } }
public String get(final ErraiServiceConfigurator configurator) { setDefaultValue(configurator); return configurator.getProperty(getAttributeName()); }
public String get(final ErraiServiceConfigurator configurator) { setDefaultValue(configurator); return configurator.getProperty(getAttributeName()); }
deliveryQueueSize = Integer.parseInt(cfg.getProperty(CONFIG_ASYNC_DELIVERY_QUEUE_SIZE)); poolSize = Integer.parseInt(cfg.getProperty(CONFIG_ASYNC_THREAD_POOL_SIZE)); workerTimeout = seconds(Integer.parseInt(cfg.getProperty(CONFIG_ASYNC_WORKER_TIMEOUT)));
private TaskManager resolveTaskManager(final ErraiServiceConfigurator config) { TaskManager result; final String tmProp = config.getProperty("errai.taskmanager_implementation"); if (tmProp != null) { try { final Class<?> tm = DefaultResources.class.getClassLoader().loadClass( tmProp); result = (TaskManager) tm.newInstance(); } catch (Exception e) { throw new RuntimeException("Failed to load task manager", e); } } else { result = DefaultTaskManager.get(); } return result; } }
public String get(final ErraiServiceConfigurator configurator) { setDefaultValue(configurator); return configurator.getProperty(getAttributeName()); }
public String get(final ErraiServiceConfigurator configurator) { setDefaultValue(configurator); return configurator.getProperty(getAttributeName()); }
return; String jndiName = configurator.getProperty("errai.persistence.factory.jndi.name"); boolean useJbossUtil = Boolean.valueOf(configurator.getProperty("errai.persistence.use_jboss_util")); boolean usingJpa = Boolean.valueOf(configurator.getProperty("errai.persistence.using_jpa")); logger.info("Factory JNDI name : " + jndiName); logger.info("Use jboss specific utility : " + useJbossUtil);
deliveryQueueSize = Integer.parseInt(cfg.getProperty(CONFIG_ASYNC_DELIVERY_QUEUE_SIZE)); poolSize = Integer.parseInt(cfg.getProperty(CONFIG_ASYNC_THREAD_POOL_SIZE)); workerTimeout = seconds(Integer.parseInt(cfg.getProperty(CONFIG_ASYNC_WORKER_TIMEOUT)));