|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@ComponentRole public interface Converter
Converter provided value in the provided target type.
The role of this component is supposed to be the supported target types. For example:
@Component("java.lang.Integer")
public class IntegerConverter implements Converter
When something goes wrong a Converter can throw a ConversionException.
| Method Summary | ||
|---|---|---|
|
convert(Type targetType,
Object sourceValue)
|
|
| Method Detail |
|---|
<T> T convert(Type targetType,
Object sourceValue)
T - the type in which the provided value has to be convertedtargetType - the type in which the provided value has to be convertedsourceValue - the value to convert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||