@Override public synchronized void clear() { environmentConfig = newEnvironmentConfig(); environmentConfig.getFrameworkProperties().putAll(permanentProperties); }
@Override public synchronized void clear() { environmentConfig = newEnvironmentConfig(); environmentConfig.getFrameworkProperties().putAll(permanentProperties); }
public void addPermanentFrameworkProperty(final String name, final String value) { permanentProperties.put(name, value); environmentConfig.getFrameworkProperties().put(name, value); } }
public void addPermanentFrameworkProperty(final String name, final String value) { permanentProperties.put(name, value); environmentConfig.getFrameworkProperties().put(name, value); } }
public static boolean isForceStaticMarshallers() { if (System.getProperty(FORCE_STATIC_MARSHALLERS) != null) { return Boolean.getBoolean(FORCE_STATIC_MARSHALLERS); } final Map<String, String> frameworkProperties = EnvUtil.getEnvironmentConfig().getFrameworkProperties(); if (frameworkProperties.containsKey(FORCE_STATIC_MARSHALLERS)) { return "true".equals(frameworkProperties.get(FORCE_STATIC_MARSHALLERS)); } else { return false; } }
public static boolean isForceStaticMarshallers() { if (System.getProperty(FORCE_STATIC_MARSHALLERS) != null) { return Boolean.getBoolean(FORCE_STATIC_MARSHALLERS); } final Map<String, String> frameworkProperties = EnvUtil.getEnvironmentConfig().getFrameworkProperties(); if (frameworkProperties.containsKey(FORCE_STATIC_MARSHALLERS)) { return "true".equals(frameworkProperties.get(FORCE_STATIC_MARSHALLERS)); } else { return false; } }
private static Map<String, String> getConfigMap() { return EnvUtil.getEnvironmentConfig().getFrameworkProperties(); }
private static Map<String, String> getConfigMap() { return EnvUtil.getEnvironmentConfig().getFrameworkProperties(); }
public static boolean isUseStaticMarshallers() { if (isForceStaticMarshallers()) return true; if (EnvUtil.isDevMode() && !EnvUtil.isJUnitTest()) return false; if (System.getProperty(USE_STATIC_MARSHALLERS) != null) { return Boolean.getBoolean(USE_STATIC_MARSHALLERS); } final Map<String, String> frameworkProperties = EnvUtil.getEnvironmentConfig().getFrameworkProperties(); if (frameworkProperties.containsKey(USE_STATIC_MARSHALLERS)) { return "true".equals(frameworkProperties.get(USE_STATIC_MARSHALLERS)); } else { return !EnvUtil.isDevMode(); } }
public static boolean isUseStaticMarshallers() { if (isForceStaticMarshallers()) return true; if (EnvUtil.isDevMode() && !EnvUtil.isJUnitTest()) return false; if (System.getProperty(USE_STATIC_MARSHALLERS) != null) { return Boolean.getBoolean(USE_STATIC_MARSHALLERS); } final Map<String, String> frameworkProperties = EnvUtil.getEnvironmentConfig().getFrameworkProperties(); if (frameworkProperties.containsKey(USE_STATIC_MARSHALLERS)) { return "true".equals(frameworkProperties.get(USE_STATIC_MARSHALLERS)); } else { return !EnvUtil.isDevMode(); } }