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<?>,List<PropertyConverter<?>>> |
ConfigurationContext.getPropertyConverters()
This method returns the Map of registered PropertyConverters
per 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. |
<T> List<PropertyConverter<T>> |
ConfigurationContext.getPropertyConverters(TypeLiteral<T> type)
This method returns the registered PropertyConverters for a given type.
|
ConfigurationContextBuilder |
ConfigurationContextBuilder.removePropertyConverters(TypeLiteral<?> typeToConvert,
Collection<PropertyConverter<?>> converters)
Removes the given PropertyConverter instances.
|
ConfigurationContextBuilder |
ConfigurationContextBuilder.removePropertyConverters(TypeLiteral<?> typeToConvert,
PropertyConverter<?>... converters)
Removes the given PropertyConverter instances.
|
Constructor and Description |
---|
ConversionContext.Builder(Configuration configuration,
ConfigurationContext configurationContext,
String key,
TypeLiteral<?> targetType)
Creates a new Builder instance.
|
ConversionContext.Builder(String key,
TypeLiteral<?> targetType)
Creates a new Builder instance.
|
ConversionContext.Builder(TypeLiteral<?> targetType)
Creates a new Builder instance.
|
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.