| Package | Description |
|---|---|
| org.apache.tamaya.spi |
| 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.
|
<T> List<PropertyConverter<T>> |
ConfigurationContext.getPropertyConverters(TypeLiteral<T> type)
This method returns the registered PropertyConverters for a given 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,
PropertyConverter<T>... propertyConverters)
This method can be used for adding
PropertyConverters. |
<T> ConfigurationContextBuilder |
ConfigurationContextBuilder.removePropertyConverters(TypeLiteral<T> typeToConvert,
PropertyConverter<T>... propertyConverters)
Removes the given PropertyConverter instances for the given type,
if existing.
|
| Modifier and Type | Method and Description |
|---|---|
<T> ConfigurationContextBuilder |
ConfigurationContextBuilder.addPropertyConverters(TypeLiteral<T> typeToConvert,
Collection<PropertyConverter<T>> propertyConverters)
This method can be used for adding
PropertyConverters. |
void |
ConversionContext.addSupportedFormats(Class<? extends PropertyConverter> converterType,
String... formatDescriptors)
Allows to add information on the supported/tried formats, which can be shown to the user, especially when
conversion failed.
|
ConversionContext.Builder |
ConversionContext.Builder.addSupportedFormats(Class<? extends PropertyConverter> converterType,
String... formatDescriptors)
Add the formats provided by a
PropertyConverter. |
<T> ConfigurationContextBuilder |
ConfigurationContextBuilder.removePropertyConverters(TypeLiteral<T> typeToConvert,
Collection<PropertyConverter<T>> propertyConverters)
Removes the given PropertyConverter instances for the given type,
if existing.
|
Copyright © 2014–2017 Apache Software Foundation. All rights reserved.