Package | Description |
---|---|
org.apache.tamaya.spi |
Modifier and Type | Method and Description |
---|---|
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> ConfigurationContextBuilder |
ConfigurationContextBuilder.addPropertyConverter(TypeLiteral<T> typeToConvert,
PropertyConverter<T> propertyConverter)
This method can be used for programmatically adding
PropertyConverter s. |
<T> void |
ConfigurationContext.addPropertyConverter(TypeLiteral<T> typeToConvert,
PropertyConverter<T> propertyConverter)
This method can be used for programmatically adding
PropertyConverter s. |
ConfigurationContextBuilder |
ConfigurationContextBuilder.removePropertyConverters(TypeLiteral<?> typeToConvert,
PropertyConverter<?>... converters)
Removes the given PropertyConverter instances.
|
Modifier and Type | Method and Description |
---|---|
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 . |
ConfigurationContextBuilder |
ConfigurationContextBuilder.removePropertyConverters(TypeLiteral<?> typeToConvert,
Collection<PropertyConverter<?>> converters)
Removes the given PropertyConverter instances.
|
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.