Class ConsulPropertySources
- java.lang.Object
-
- org.springframework.cloud.consul.config.ConsulPropertySources
-
public class ConsulPropertySources extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConsulPropertySources.Context
-
Field Summary
Fields Modifier and Type Field Description protected static List<String>DIR_SUFFIXESprotected static List<String>FILES_SUFFIXES
-
Constructor Summary
Constructors Constructor Description ConsulPropertySources(ConsulConfigProperties properties, org.apache.commons.logging.Log log)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ConsulPropertySourcecreatePropertySource(String propertySourceContext, boolean optional, com.ecwid.consul.v1.ConsulClient consul, BiConsumer<String,Long> indexConsumer)Deprecated.ConsulPropertySourcecreatePropertySource(String propertySourceContext, com.ecwid.consul.v1.ConsulClient consul, BiConsumer<String,Long> indexConsumer)List<ConsulPropertySources.Context>generateAutomaticContexts(List<String> profiles, boolean reverse)List<String>getAutomaticContexts(List<String> profiles)List<String>getAutomaticContexts(List<String> profiles, boolean reverse)protected StringgetContext(String prefix, String context)protected List<String>getSuffixes()
-
-
-
Constructor Detail
-
ConsulPropertySources
public ConsulPropertySources(ConsulConfigProperties properties, org.apache.commons.logging.Log log)
-
-
Method Detail
-
getAutomaticContexts
public List<String> getAutomaticContexts(List<String> profiles, boolean reverse)
-
generateAutomaticContexts
public List<ConsulPropertySources.Context> generateAutomaticContexts(List<String> profiles, boolean reverse)
-
createPropertySource
@Deprecated public ConsulPropertySource createPropertySource(String propertySourceContext, boolean optional, com.ecwid.consul.v1.ConsulClient consul, BiConsumer<String,Long> indexConsumer)
Deprecated.
-
createPropertySource
public ConsulPropertySource createPropertySource(String propertySourceContext, com.ecwid.consul.v1.ConsulClient consul, BiConsumer<String,Long> indexConsumer)
-
-