| Package | Description |
|---|---|
| org.apache.tamaya | |
| org.apache.tamaya.spi |
| Modifier and Type | Method and Description |
|---|---|
static <R> TypeLiteral<R> |
TypeLiteral.of(Type type)
Creates a new TypeLiteral based on a given type.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
Configuration.get(String key,
TypeLiteral<T> type)
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 and Description |
|---|---|
TypeLiteral<?> |
ConversionContext.getTargetType()
Get the target type required.
|
| Modifier and Type | Method and Description |
|---|---|
Map<TypeLiteral<?>,Collection<PropertyConverter<?>>> |
ConfigurationContextBuilder.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 and Description |
|---|---|
<T> void |
ConfigurationContext.addPropertyConverter(TypeLiteral<T> type,
PropertyConverter<T> propertyConverter)
Deprecated.
Use
ConfigurationContextBuilder to create a new ConfigurationContext. |
<T> ConfigurationContextBuilder |
ConfigurationContextBuilder.addPropertyConverters(TypeLiteral<T> typeToConvert,
Collection<PropertyConverter<T>> propertyConverters)
This method can be used for adding
PropertyConverters. |
<T> ConfigurationContextBuilder |
ConfigurationContextBuilder.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.
|
ConfigurationContextBuilder |
ConfigurationContextBuilder.removePropertyConverters(TypeLiteral<?> typeToConvert)
Removes all converters for the given type, which actually renders a given type
unsupported for type conversion.
|
<T> ConfigurationContextBuilder |
ConfigurationContextBuilder.removePropertyConverters(TypeLiteral<T> typeToConvert,
Collection<PropertyConverter<T>> propertyConverters)
Removes the given PropertyConverter instances for the given type,
if existing.
|
<T> ConfigurationContextBuilder |
ConfigurationContextBuilder.removePropertyConverters(TypeLiteral<T> typeToConvert,
PropertyConverter<T>... propertyConverters)
Removes the given PropertyConverter instances for the given type,
if existing.
|
| Constructor and Description |
|---|
Builder(Configuration configuration,
ConfigurationContext configurationContext,
String key,
TypeLiteral<?> targetType)
Creates a new Builder instance.
|
Builder(String key,
TypeLiteral<?> targetType)
Creates a new Builder instance.
|
Builder(TypeLiteral<?> targetType)
Creates a new Builder instance.
|
Copyright © 2014–2017 Apache Software Foundation. All rights reserved.