T
- the type in which the provided value has to be converted@Role public interface Converter<T>
The type supported by the converted is indicated in its role.
For example:
@Component public class IntegerConverter implements Converter<java.lang.Integer>
When something goes wrong a Converter can throw a ConversionException
.
Modifier and Type | Method and Description |
---|---|
<G> G |
convert(Type targetType,
Object sourceValue) |
Copyright © 2004–2019 XWiki. All rights reserved.