Package | Description |
---|---|
org.apache.deltaspike.core.api.config | |
org.apache.deltaspike.core.api.config.base | |
org.apache.deltaspike.core.spi.config |
Modifier and Type | Interface and Description |
---|---|
static interface |
ConfigResolver.UntypedResolver<T>
A builder-based optionally typed resolution mechanism for configuration values.
|
Modifier and Type | Method and Description |
---|---|
<N> ConfigResolver.TypedResolver<N> |
ConfigResolver.UntypedResolver.as(Class<N> clazz)
Sets the type of the configuration entry to the given class and returns this builder as a TypedResolver.
|
<N> ConfigResolver.TypedResolver<N> |
ConfigResolver.UntypedResolver.as(Class<N> clazz,
ConfigResolver.Converter<N> converter)
Sets the type of the configuration entry to the given class, sets the converter to the one given and
returns this builder as a TypedResolver.
|
<N> ConfigResolver.TypedResolver<N> |
ConfigResolver.UntypedResolver.as(Type type,
ConfigResolver.Converter<N> converter) |
ConfigResolver.TypedResolver<List<T>> |
ConfigResolver.TypedResolver.asList()
Declare the Resolver to return a List of the given Type.
|
ConfigResolver.TypedResolver<T> |
ConfigResolver.TypedResolver.cacheFor(TimeUnit timeUnit,
long value)
Specify that a resolved value will get cached for a certain amount of time.
|
ConfigResolver.TypedResolver<T> |
ConfigResolver.TypedResolver.evaluateVariables(boolean evaluateVariables)
Whether to evaluate variables in configured values.
|
ConfigResolver.TypedResolver<T> |
ConfigResolver.TypedResolver.logChanges(boolean logChanges)
Whether to log picking up any value changes as INFO.
|
ConfigResolver.TypedResolver<T> |
ConfigResolver.TypedResolver.onChange(ConfigResolver.ConfigChanged<T> valueChangedCallback)
A user can register a Callback which gets notified whenever
a config change got detected.
|
ConfigResolver.TypedResolver<T> |
ConfigResolver.TypedResolver.parameterizedBy(String propertyName)
Appends the resolved value of the given property to the key of this builder.
|
ConfigResolver.TypedResolver<T> |
ConfigResolver.TypedResolver.strictly(boolean strictly)
Indicates whether the fallback resolution sequence should be performed, as described in
ConfigResolver.getPropertyAwarePropertyValue(String, String) . |
ConfigResolver.TypedResolver<T> |
ConfigResolver.TypedResolver.withCurrentProjectStage(boolean with)
Indicates whether to append the name of the current project stage to the key of this builder.
|
ConfigResolver.TypedResolver<T> |
ConfigResolver.TypedResolver.withDefault(T value)
Sets the default value to use in case the resolution returns null.
|
ConfigResolver.TypedResolver<T> |
ConfigResolver.TypedResolver.withStringDefault(String value)
Sets the default value to use in case the resolution returns null.
|
Modifier and Type | Method and Description |
---|---|
ConfigSnapshot |
Config.snapshotFor(ConfigResolver.TypedResolver<?>... typedResolvers)
This method can be used to access multiple
ConfigResolver.TypedResolver which must be consistent. |
Modifier and Type | Field and Description |
---|---|
static ConfigResolver.TypedResolver<Boolean> |
CoreBaseConfig.InterDynCustomization.INTERDYN_ENABLED
Whether the InterDyn feature is enabled or not.
|
Modifier and Type | Method and Description |
---|---|
<T> ConfigResolver.TypedResolver<T> |
BaseConfigPropertyProducer.asResolver(String key,
String stringDefault,
Type ipCls,
Class<? extends ConfigResolver.Converter> converterType,
String parameterizedBy,
boolean projectStageAware,
boolean evaluate) |
Copyright © 2020 The Apache Software Foundation. All rights reserved.