@Test public void testNoEnvVar() { propConfig.honorClusterOverrides("", props); assertEquals("props has same size", 5, props.size()); assertEquals( "dev.url is still https: "https: props.getProperty("dev.url")); assertEquals( "dev.user is still https: assertEquals( "doc.url is still https: "https: props.getProperty("doc.url")); assertEquals( "doc.user is still https: assertEquals("user is still https: }
public static void honorClusterOverrides(Properties properties) { String cluster = System.getenv(CLUSTER_ENV_VARIABLE); if (cluster == null || cluster.length() == 0) { cluster = System.getProperty(CLUSTER_JVM_VARIABLE, ""); } honorClusterOverrides(cluster, properties); }
PortalPropertySourcesPlaceholderConfigurer extends PropertySourcesPlaceholderConfigurer { public static void honorClusterOverrides(Properties properties) { String cluster = System.getenv(CLUSTER_ENV_VARIABLE); if (cluster == null || cluster.length() == 0) { cluster = System.getProperty(CLUSTER_JVM_VARIABLE, ""); } honorClusterOverrides(cluster, properties); } }
PortalPropertySourcesPlaceholderConfigurer extends PropertySourcesPlaceholderConfigurer { public static void honorClusterOverrides(Properties properties) { String cluster = System.getenv(CLUSTER_ENV_VARIABLE); if (cluster == null || cluster.length() == 0) { cluster = System.getProperty(CLUSTER_JVM_VARIABLE, ""); } honorClusterOverrides(cluster, properties); } PortalPropertySourcesPlaceholderConfigurer(); }
PortalPropertySourcesPlaceholderConfigurer extends PropertySourcesPlaceholderConfigurer { public static void honorClusterOverrides(Properties properties) { String cluster = System.getenv(CLUSTER_ENV_VARIABLE); if (cluster == null || cluster.length() == 0) { cluster = System.getProperty(CLUSTER_JVM_VARIABLE, ""); } honorClusterOverrides(cluster, properties); } PortalPropertySourcesPlaceholderConfigurer(); @Override void setIgnoreResourceNotFound(boolean value); @Override void setLocations(Resource... locations); @Override void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory); PropertyResolver getPropertyResolver(); static void honorClusterOverrides(Properties properties); static void honorClusterOverrides(String cluster, Properties properties); }
PortalPropertySourcesPlaceholderConfigurer extends PropertySourcesPlaceholderConfigurer { public static void honorClusterOverrides(Properties properties) { String cluster = System.getenv(CLUSTER_ENV_VARIABLE); if (cluster == null || cluster.length() == 0) { cluster = System.getProperty(CLUSTER_JVM_VARIABLE, ""); } honorClusterOverrides(cluster, properties); } PortalPropertySourcesPlaceholderConfigurer(); @Override void setIgnoreResourceNotFound(boolean value); @Override void setLocations(Resource... locations); @Override void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory); PropertyResolver getPropertyResolver(); static void honorClusterOverrides(Properties properties); static void honorClusterOverrides(String cluster, Properties properties); static final String EXTENDED_PROPERTIES_SOURCE; static final String JAYSYPT_ENCRYPTION_KEY_VARIABLE; static final String CLUSTER_ENV_VARIABLE; static final String CLUSTER_JVM_VARIABLE; }