| Package | Description |
|---|---|
| org.apache.tamaya |
This package contains the Apache Tamaya API.
|
| org.apache.tamaya.spi |
This package contains the Apache Tamaya SPI artifacts.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <R> TypeLiteral<R> |
TypeLiteral.of(Type type) |
Creates a new TypeLiteral based on a given type.
|
| Modifier and Type | Method | Description |
|---|---|---|
default <T> T |
Configuration.get(Iterable<String> keys,
TypeLiteral<T> type) |
Get the property keys as type T.
|
<T> T |
Configuration.get(String key,
TypeLiteral<T> type) |
Get the property keys as type T.
|
default <T> Optional<T> |
Configuration.getOptional(Iterable<String> keys,
TypeLiteral<T> type) |
Access a property, using an an
Optional instance. |
default <T> Optional<T> |
Configuration.getOptional(String key,
TypeLiteral<T> type) |
Access a property, using an an
Optional instance. |
default <T> T |
Configuration.getOrDefault(Iterable<String> keys,
TypeLiteral<T> type,
T defaultValue) |
Get the property keys as type T.
|
<T> T |
Configuration.getOrDefault(String key,
TypeLiteral<T> type,
T defaultValue) |
Get the property keys as type T.
|
| Modifier and Type | Method | Description |
|---|---|---|
TypeLiteral<?> |
ConversionContext.getTargetType() |
Get the target type required.
|
| Modifier and Type | Method | Description |
|---|---|---|
Map<TypeLiteral<?>,List<PropertyConverter<?>>> |
ConfigurationBuilder.getPropertyConverter() |
Access the current registered property converters.
|
Map<TypeLiteral<?>,List<PropertyConverter<?>>> |
ConfigurationContext.getPropertyConverters() |
This method returns the Map of registered
PropertyConverters
per type. |
| Modifier and Type | Method | Description |
|---|---|---|
<T> ConfigurationBuilder |
ConfigurationBuilder.addPropertyConverters(TypeLiteral<T> typeToConvert,
Collection<PropertyConverter<T>> propertyConverters) |
This method can be used for adding
PropertyConverters. |
default <T> ConfigurationBuilder |
ConfigurationBuilder.addPropertyConverters(TypeLiteral<T> typeToConvert,
PropertyConverter<T>... propertyConverters) |
This method can be used for adding
PropertyConverters. |
<T> List<PropertyConverter<T>> |
ConfigurationContext.getPropertyConverters(TypeLiteral<T> type) |
This method returns the registered
PropertyConverters for a given type. |
ConfigurationBuilder |
ConfigurationBuilder.removePropertyConverters(TypeLiteral<?> typeToConvert) |
Removes all converters for the given type, which actually renders a given type
unsupported for type conversion.
|
<T> ConfigurationBuilder |
ConfigurationBuilder.removePropertyConverters(TypeLiteral<T> typeToConvert,
Collection<PropertyConverter<T>> propertyConverters) |
Removes the given PropertyConverter instances for the given type,
if existing.
|
default <T> ConfigurationBuilder |
ConfigurationBuilder.removePropertyConverters(TypeLiteral<T> typeToConvert,
PropertyConverter<T>... propertyConverters) |
Removes the given
PropertyConverter instances for the given type,
if existing. |
ConversionContext.Builder |
ConversionContext.Builder.setTargetType(TypeLiteral targetType) |
Sets the target type explicitly.
|
| Constructor | Description |
|---|---|
Builder(String key,
TypeLiteral<?> targetType) |
Creates a new Builder instance.
|
Builder(Configuration configuration,
String key,
TypeLiteral<?> targetType) |
Creates a new Builder instance.
|
Builder(TypeLiteral<?> targetType) |
Creates a new Builder instance.
|
Copyright © 2014–2019 Apache Software Foundation. All rights reserved.