/** * Set the Config Path from a String reference to a file * * @param configFile the config file can a be a file path or a reference to a file within a jar file {@code jar:file:} */ @Deprecated public void setConfigPath(String configFile) { setConfig(configFile); }
/** * Set the Config Path from a String reference to a file * @param configFile the config file can a be a file path or a reference to a file within a jar file <code>jar:file:</code> */ @Deprecated public void setConfigPath(String configFile) { setConfig(configFile); }
/** * Make a {@link UserStore} from a password file. * {@link PropertyUserStore} for details. */ public static UserStore makeUserStore(String passwordFile) { PropertyUserStore propertyUserStore = new PropertyUserStore(); propertyUserStore.setConfig(passwordFile); propertyUserStore.setHotReload(true); try { propertyUserStore.start(); } catch (Exception ex) { throw new RuntimeException("UserStore", ex); } return propertyUserStore; }
/** * Make a {@link UserStore} from a password file. * {@link PropertyUserStore} for details. */ public static UserStore makeUserStore(String passwordFile) { PropertyUserStore propertyUserStore = new PropertyUserStore(); propertyUserStore.setConfig(passwordFile); propertyUserStore.setHotReload(true); try { propertyUserStore.start(); } catch (Exception ex) { throw new RuntimeException("UserStore", ex); } return propertyUserStore; }
private void setupPropertyUserStore(Map<String, ?> options) { parseConfig(options); if (_propertyUserStores.get(_filename) == null) { PropertyUserStore propertyUserStore = new PropertyUserStore(); propertyUserStore.setConfig(_filename); propertyUserStore.setRefreshInterval(_refreshInterval); PropertyUserStore prev = _propertyUserStores.putIfAbsent(_filename, propertyUserStore); if (prev == null) { LOG.debug("setupPropertyUserStore: Starting new PropertyUserStore. PropertiesFile: " + _filename + " refreshInterval: " + _refreshInterval); try { propertyUserStore.start(); } catch (Exception e) { LOG.warn("Exception while starting propertyUserStore: ",e); } } } }
private void setupPropertyUserStore(Map<String, ?> options) { parseConfig(options); if (_propertyUserStores.get(_filename) == null) { PropertyUserStore propertyUserStore = new PropertyUserStore(); propertyUserStore.setConfig(_filename); propertyUserStore.setRefreshInterval(_refreshInterval); PropertyUserStore prev = _propertyUserStores.putIfAbsent(_filename, propertyUserStore); if (prev == null) { LOG.debug("setupPropertyUserStore: Starting new PropertyUserStore. PropertiesFile: " + _filename + " refreshInterval: " + _refreshInterval); try { propertyUserStore.start(); } catch (Exception e) { LOG.warn("Exception while starting propertyUserStore: ",e); } } } }
/** * @see org.eclipse.jetty.util.component.AbstractLifeCycle#doStart() */ protected void doStart() throws Exception { super.doStart(); if (_propertyUserStore == null) { if(LOG.isDebugEnabled()) LOG.debug("doStart: Starting new PropertyUserStore. PropertiesFile: " + _config + " refreshInterval: " + _refreshInterval); _propertyUserStore = new PropertyUserStore(); _propertyUserStore.setRefreshInterval(_refreshInterval); _propertyUserStore.setConfig(_config); _propertyUserStore.registerUserListener(this); _propertyUserStore.start(); } }
/** * @see org.eclipse.jetty.util.component.AbstractLifeCycle#doStart() */ protected void doStart() throws Exception { super.doStart(); if (_propertyUserStore == null) { if(LOG.isDebugEnabled()) LOG.debug("doStart: Starting new PropertyUserStore. PropertiesFile: " + _config + " refreshInterval: " + _refreshInterval); _propertyUserStore = new PropertyUserStore(); _propertyUserStore.setRefreshInterval(_refreshInterval); _propertyUserStore.setConfig(_config); _propertyUserStore.registerUserListener(this); _propertyUserStore.start(); } }
/** * @see org.eclipse.jetty.util.component.AbstractLifeCycle#doStart() */ protected void doStart() throws Exception { super.doStart(); if (_propertyUserStore == null) { if(LOG.isDebugEnabled()) LOG.debug("doStart: Starting new PropertyUserStore. PropertiesFile: " + _config + " refreshInterval: " + _refreshInterval); _propertyUserStore = new PropertyUserStore(); _propertyUserStore.setRefreshInterval(_refreshInterval); _propertyUserStore.setConfig(_config); _propertyUserStore.registerUserListener(this); _propertyUserStore.start(); } }
/** * @see org.eclipse.jetty.util.component.AbstractLifeCycle#doStart() */ @Override protected void doStart() throws Exception { super.doStart(); if (_propertyUserStore == null) { if(LOG.isDebugEnabled()) LOG.debug("doStart: Starting new PropertyUserStore. PropertiesFile: " + _config + " refreshInterval: " + _refreshInterval); _propertyUserStore = new PropertyUserStore(); _propertyUserStore.setRefreshInterval(_refreshInterval); _propertyUserStore.setConfig(_config); _propertyUserStore.registerUserListener(this); _propertyUserStore.start(); } }
/** * @see org.eclipse.jetty.util.component.AbstractLifeCycle#doStart() */ protected void doStart() throws Exception { super.doStart(); if (_propertyUserStore == null) { if(LOG.isDebugEnabled()) LOG.debug("doStart: Starting new PropertyUserStore. PropertiesFile: " + _config + " refreshInterval: " + _refreshInterval); _propertyUserStore = new PropertyUserStore(); _propertyUserStore.setRefreshInterval(_refreshInterval); _propertyUserStore.setConfig(_config); _propertyUserStore.registerUserListener(this); _propertyUserStore.start(); } }
/** * @see org.eclipse.jetty.util.component.AbstractLifeCycle#doStart() */ protected void doStart() throws Exception { super.doStart(); if (_propertyUserStore == null) { if(LOG.isDebugEnabled()) LOG.debug("doStart: Starting new PropertyUserStore. PropertiesFile: " + _config + " refreshInterval: " + _refreshInterval); _propertyUserStore = new PropertyUserStore(); _propertyUserStore.setRefreshInterval(_refreshInterval); _propertyUserStore.setConfig(_config); _propertyUserStore.registerUserListener(this); _propertyUserStore.start(); } }
/** * @see org.eclipse.jetty.util.component.AbstractLifeCycle#doStart() */ protected void doStart() throws Exception { super.doStart(); if (_propertyUserStore == null) { if(LOG.isDebugEnabled()) LOG.debug("doStart: Starting new PropertyUserStore. PropertiesFile: " + _config + " refreshInterval: " + _refreshInterval); _propertyUserStore = new PropertyUserStore(); _propertyUserStore.setRefreshInterval(_refreshInterval); _propertyUserStore.setConfig(_config); _propertyUserStore.registerUserListener(this); _propertyUserStore.start(); } }