/** * The configuration key 'contextClassLoaderFilter' specifies a regexp which is used to filter the thread context * classloaders. Only matching context classloaders are logged on permission request. * * @return Returns the configuration value for key 'contextClassLoaderFilter' */ private String contextClassLoaderFilter() { return properties.getProperty("contextClassLoaderFilter"); }
/** * Reads the subfolder for hot deploy from the properties. Files here are intended to be added and removed to signal a * (un)deploy via filesystem. */ private String deployFolder() { checkState(); return this.properties.getProperty("deploy-folder"); }
/** * This is the subfolder for deployed classpath access by the limbus container. Files here are assumed to be readable * exclusively by the container. */ private String workFolder() { checkState(); return this.properties.getProperty("work-folder"); }
public float getFloat(String key) { Lang.denyNull("key", key); _checkKey(key); try { return Float.parseFloat(getProperty(key)); } catch (Exception e) { throw new RuntimeException(String.format("Configuration key '%s' cannot be parsed.", key)); } }
public long getLong(String key) { Lang.denyNull("key", key); _checkKey(key); try { return Long.parseLong(getProperty(key)); } catch (Exception e) { throw new RuntimeException(String.format("Configuration key '%s' cannot be parsed.", key)); } }
public boolean getBoolean(String key) { Lang.denyNull("key", key); _checkKey(key); try { return Boolean.parseBoolean(getProperty(key)); } catch (Exception e) { throw new RuntimeException(String.format("Configuration key '%s' cannot be parsed.", key)); } }
public double getDouble(String key) { Lang.denyNull("key", key); _checkKey(key); try { return Double.parseDouble(getProperty(key)); } catch (Exception e) { throw new RuntimeException(String.format("Configuration key '%s' cannot be parsed.", key)); } }
public int getInt(String key) { Lang.denyNull("key", key); _checkKey(key); try { return Integer.parseInt(getProperty(key)); } catch (Exception e) { throw new RuntimeException(String.format("Configuration key '%s' cannot be parsed.", key)); } }
public <T extends Enum<T>> T getEnum(String key, Class<T> enumType) { Lang.denyNull("key", key); Lang.denyNull("enumType", enumType); _checkKey(key); try { return Enum.valueOf(enumType, getProperty(key)); } catch (Exception e) { throw new RuntimeException(String.format("Configuration key '%s' cannot be parsed.", key)); } }