Package io.smallrye.config
Class ConfigMappingContext.ObjectCreator<T>
java.lang.Object
io.smallrye.config.ConfigMappingContext.ObjectCreator<T>
- Enclosing class:
ConfigMappingContext
-
Constructor Summary
ConstructorsConstructorDescriptionObjectCreator(String path) ObjectCreator(String path, boolean applyNamingStrategy) -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanbooleanValue(ConfigMappingContext context, boolean applyNamingStrategy, String propertyName) static booleanboolValue(ConfigMappingContext context, boolean applyNamingStrategy, String propertyName) <V,C extends Collection<V>>
ConfigMappingContext.ObjectCreator<T> collection(Class<C> collectionRawType) static <V,C extends Collection<V>>
Optional<C> convertOptionalValues(ConfigMappingContext context, String propertyName, org.eclipse.microprofile.config.spi.Converter<V> itemConverter, Class<C> collectionRawType) static <K,V, C extends Collection<V>>
Map<K, C> convertValues(ConfigMappingContext context, String propertyName, org.eclipse.microprofile.config.spi.Converter<K> keyConverter, org.eclipse.microprofile.config.spi.Converter<V> valueConverter, Class<C> collectionRawType, Iterable<String> keys, String defaultValue) static <K,V> Map <K, V> convertValues(ConfigMappingContext context, String propertyName, org.eclipse.microprofile.config.spi.Converter<K> keyConverter, org.eclipse.microprofile.config.spi.Converter<V> valueConverter, Iterable<String> keys, String defaultValue) static <T,C extends Collection<T>>
IntFunction<? extends Collection<T>> createCollectionFactory(Class<C> type) get()static IntegerintegerValue(ConfigMappingContext context, boolean applyNamingStrategy, String propertyName) static intintValue(ConfigMappingContext context, boolean applyNamingStrategy, String propertyName) map(Class<K> keyRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<K>> keyConvertWith) map(Class<K> keyRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<K>> keyConvertWith, String unnamedKey, Iterable<String> keys) <K,V> ConfigMappingContext.ObjectCreator <T> map(Class<K> keyRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<K>> keyConvertWith, String unnamedKey, Iterable<String> keys, Class<V> defaultClass) <K,V> ConfigMappingContext.ObjectCreator <T> map(Class<K> keyRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<K>> keyConvertWith, String unnamedKey, Iterable<String> keys, Supplier<V> defaultValue) <V,C extends Collection<V>>
ConfigMappingContext.ObjectCreator<T> optionalCollection(Class<C> collectionRawType) optionalGroup(Class<G> groupType) optionalSecretValue(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<V> valueRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> valueConvertWith) static <V,C extends Collection<Secret<V>>>
Optional<C> optionalSecretValues(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<V> itemRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> itemConvertWith, Class<C> collectionRawType) optionalStringValue(ConfigMappingContext context, boolean applyNamingStrategy, String propertyName) static <V> Optional<V> optionalValue(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<V> valueRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> valueConvertWith) optionalValue(Class<V> valueRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> valueConvertWith) static <V,C extends Collection<V>>
Optional<C> optionalValues(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<V> itemRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> itemConvertWith, Class<C> collectionRawType) <V,C extends Collection<V>>
ConfigMappingContext.ObjectCreator<T> optionalValues(Class<V> itemRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> itemConvertWith, Class<C> collectionRawType) static <V> Secret<V> secretValue(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<V> valueRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> valueConvertWith) secretValues(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<K> keyRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<K>> keyConvertWith, boolean valueOptional, Class<V> valueRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> valueConvertWith, Iterable<String> keys, String defaultValue) static <K,V, C extends Collection<Secret<V>>>
Map<K, C> secretValues(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<K> keyRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<K>> keyConvertWith, Class<V> valueRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> valueConvertWith, Class<C> collectionRawType, Iterable<String> keys, String defaultValue) static <V,C extends Collection<Secret<V>>>
CsecretValues(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<V> itemRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> itemConvertWith, Class<C> collectionRawType) static StringstringValue(ConfigMappingContext context, boolean applyNamingStrategy, String propertyName) static <V> Vvalue(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<V> valueRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> valueConvertWith) value(Class<T> valueRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<T>> valueConvertWith) static <K,V> Map <K, V> values(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<K> keyRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<K>> keyConvertWith, boolean valueOptional, Class<V> valueRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> valueConvertWith, Iterable<String> keys, String defaultValue) static <K,V, C extends Collection<V>>
Map<K, C> values(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<K> keyRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<K>> keyConvertWith, Class<V> valueRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> valueConvertWith, Class<C> collectionRawType, Iterable<String> keys, String defaultValue) static <V,C extends Collection<V>>
Cvalues(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<V> itemRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> itemConvertWith, Class<C> collectionRawType) <K,V, C extends Collection<V>>
ConfigMappingContext.ObjectCreator<T> values(Class<K> keyRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<K>> keyConvertWith, Class<V> valueRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> valueConvertWith, Class<C> collectionRawType, Iterable<String> keys, String defaultValue) <K,V> ConfigMappingContext.ObjectCreator <T> values(Class<K> keyRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<K>> keyConvertWith, Class<V> valueRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> valueConvertWith, Iterable<String> keys, String defaultValue) <V,C extends Collection<V>>
ConfigMappingContext.ObjectCreator<T> values(Class<V> itemRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> itemConvertWith, Class<C> collectionRawType)
-
Constructor Details
-
ObjectCreator
-
ObjectCreator
-
-
Method Details
-
map
public <K> ConfigMappingContext.ObjectCreator<T> map(Class<K> keyRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<K>> keyConvertWith) -
map
-
map
-
map
-
collection
public <V,C extends Collection<V>> ConfigMappingContext.ObjectCreator<T> collection(Class<C> collectionRawType) -
optionalCollection
public <V,C extends Collection<V>> ConfigMappingContext.ObjectCreator<T> optionalCollection(Class<C> collectionRawType) -
group
-
lazyGroup
-
optionalGroup
-
value
public static <V> V value(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<V> valueRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> valueConvertWith) -
stringValue
public static String stringValue(ConfigMappingContext context, boolean applyNamingStrategy, String propertyName) -
integerValue
public static Integer integerValue(ConfigMappingContext context, boolean applyNamingStrategy, String propertyName) -
intValue
public static int intValue(ConfigMappingContext context, boolean applyNamingStrategy, String propertyName) -
booleanValue
public static Boolean booleanValue(ConfigMappingContext context, boolean applyNamingStrategy, String propertyName) -
boolValue
public static boolean boolValue(ConfigMappingContext context, boolean applyNamingStrategy, String propertyName) -
secretValue
public static <V> Secret<V> secretValue(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<V> valueRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> valueConvertWith) -
value
-
optionalValue
public static <V> Optional<V> optionalValue(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<V> valueRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> valueConvertWith) -
optionalStringValue
public static Optional<String> optionalStringValue(ConfigMappingContext context, boolean applyNamingStrategy, String propertyName) -
optionalSecretValue
-
optionalValue
public <V> ConfigMappingContext.ObjectCreator<T> optionalValue(Class<V> valueRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> valueConvertWith) -
values
public static <V,C extends Collection<V>> C values(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<V> itemRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> itemConvertWith, Class<C> collectionRawType) -
secretValues
public static <V,C extends Collection<Secret<V>>> C secretValues(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<V> itemRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> itemConvertWith, Class<C> collectionRawType) -
values
public <V,C extends Collection<V>> ConfigMappingContext.ObjectCreator<T> values(Class<V> itemRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> itemConvertWith, Class<C> collectionRawType) -
optionalValues
public static <V,C extends Collection<V>> Optional<C> optionalValues(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<V> itemRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> itemConvertWith, Class<C> collectionRawType) -
optionalSecretValues
public static <V,C extends Collection<Secret<V>>> Optional<C> optionalSecretValues(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<V> itemRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> itemConvertWith, Class<C> collectionRawType) -
convertOptionalValues
public static <V,C extends Collection<V>> Optional<C> convertOptionalValues(ConfigMappingContext context, String propertyName, org.eclipse.microprofile.config.spi.Converter<V> itemConverter, Class<C> collectionRawType) -
optionalValues
public <V,C extends Collection<V>> ConfigMappingContext.ObjectCreator<T> optionalValues(Class<V> itemRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> itemConvertWith, Class<C> collectionRawType) -
values
public static <K,V> Map<K,V> values(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<K> keyRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<K>> keyConvertWith, boolean valueOptional, Class<V> valueRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> valueConvertWith, Iterable<String> keys, String defaultValue) -
secretValues
public static <K,V> Map<K,Secret<V>> secretValues(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<K> keyRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<K>> keyConvertWith, boolean valueOptional, Class<V> valueRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> valueConvertWith, Iterable<String> keys, String defaultValue) -
convertValues
-
values
public <K,V> ConfigMappingContext.ObjectCreator<T> values(Class<K> keyRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<K>> keyConvertWith, Class<V> valueRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> valueConvertWith, Iterable<String> keys, String defaultValue) -
values
public static <K,V, Map<K,C extends Collection<V>> C> values(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<K> keyRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<K>> keyConvertWith, Class<V> valueRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> valueConvertWith, Class<C> collectionRawType, Iterable<String> keys, String defaultValue) -
secretValues
public static <K,V, Map<K,C extends Collection<Secret<V>>> C> secretValues(ConfigMappingContext context, boolean applyNamingStrategy, String name, Class<K> keyRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<K>> keyConvertWith, Class<V> valueRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> valueConvertWith, Class<C> collectionRawType, Iterable<String> keys, String defaultValue) -
convertValues
public static <K,V, Map<K,C extends Collection<V>> C> convertValues(ConfigMappingContext context, String propertyName, org.eclipse.microprofile.config.spi.Converter<K> keyConverter, org.eclipse.microprofile.config.spi.Converter<V> valueConverter, Class<C> collectionRawType, Iterable<String> keys, String defaultValue) -
values
public <K,V, ConfigMappingContext.ObjectCreator<T> valuesC extends Collection<V>> (Class<K> keyRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<K>> keyConvertWith, Class<V> valueRawType, Class<? extends org.eclipse.microprofile.config.spi.Converter<V>> valueConvertWith, Class<C> collectionRawType, Iterable<String> keys, String defaultValue) -
get
-
createCollectionFactory
public static <T,C extends Collection<T>> IntFunction<? extends Collection<T>> createCollectionFactory(Class<C> type)
-