|
|
@ -929,10 +929,10 @@ public interface ConverterFactory<S, R> { |
|
|
|
|
|
|
|
|
|
|
|
}]]></programlisting> |
|
|
|
}]]></programlisting> |
|
|
|
|
|
|
|
|
|
|
|
<para> Parameterize S to be type you are converting from and R to be base |
|
|
|
<para> Parameterize S to be the type you are converting from and R to be |
|
|
|
type defining the <emphasis>range</emphasis> of classes you can convert |
|
|
|
the base type defining the <emphasis>range</emphasis> of classes you can |
|
|
|
to. Then implement getConverter(Class<T>), where T is a subclass |
|
|
|
convert to. Then implement getConverter(Class<T>), where T is a |
|
|
|
of R. </para> |
|
|
|
subclass of R. </para> |
|
|
|
|
|
|
|
|
|
|
|
<para> Consider the <classname>StringToEnum</classname> ConverterFactory |
|
|
|
<para> Consider the <classname>StringToEnum</classname> ConverterFactory |
|
|
|
as an example: </para> |
|
|
|
as an example: </para> |
|
|
|