@Priority(value=3600) public class ProfileConfigSourceInterceptor extends Object implements ConfigSourceInterceptor
| Modifier and Type | Field and Description |
|---|---|
static String |
SMALLRYE_PROFILE |
static String |
SMALLRYE_PROFILE_PARENT |
EMPTY| Constructor and Description |
|---|
ProfileConfigSourceInterceptor(ConfigSourceInterceptorContext context) |
ProfileConfigSourceInterceptor(List<String> profiles) |
ProfileConfigSourceInterceptor(String profile) |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
convertProfile(String profile) |
String[] |
getProfiles() |
ConfigValue |
getProfileValue(ConfigSourceInterceptorContext context,
String normalizeName) |
ConfigValue |
getValue(ConfigSourceInterceptorContext context,
String name)
Intercept the resolution of a configuration name and either return the corresponding
ConfigValue or a
custom ConfigValue built by the interceptor. |
Iterator<String> |
iterateNames(ConfigSourceInterceptorContext context)
Intercept the resolution of the configuration names.
|
Iterator<ConfigValue> |
iterateValues(ConfigSourceInterceptorContext context)
Intercept the resolution of the configuration
ConfigValue. |
public static final String SMALLRYE_PROFILE
public static final String SMALLRYE_PROFILE_PARENT
public ProfileConfigSourceInterceptor(String profile)
public ProfileConfigSourceInterceptor(ConfigSourceInterceptorContext context)
public ConfigValue getValue(ConfigSourceInterceptorContext context, String name)
ConfigSourceInterceptorConfigValue or a
custom ConfigValue built by the interceptor. Calling
ConfigSourceInterceptorContext.proceed(String) will continue to execute the interceptor chain. The chain
can be short-circuited by returning another instance of ConfigValue.getValue in interface ConfigSourceInterceptorcontext - the interceptor context. See ConfigSourceInterceptorContextname - the configuration name being intercepted.ConfigValue with information about the name, value, config source and ordinal, or null
if the value isn't present.public ConfigValue getProfileValue(ConfigSourceInterceptorContext context, String normalizeName)
public Iterator<String> iterateNames(ConfigSourceInterceptorContext context)
ConfigSourceInterceptorConfigSourceInterceptorContext.iterateNames() will continue to execute the interceptor chain. The chain
can be short-circuited by returning another instance of the Iterator.iterateNames in interface ConfigSourceInterceptorcontext - the interceptor context. See ConfigSourceInterceptorContextpublic Iterator<ConfigValue> iterateValues(ConfigSourceInterceptorContext context)
ConfigSourceInterceptorConfigValue. Calling
ConfigSourceInterceptorContext.iterateNames() will continue to execute the interceptor chain. The chain
can be short-circuited by returning another instance of the Iterator.iterateValues in interface ConfigSourceInterceptorcontext - the interceptor context. See ConfigSourceInterceptorContextConfigValue with information about the name, value, config source and ordinal.public String[] getProfiles()
Copyright © 2018–2021. All rights reserved.