|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@UsesConfiguration(value=Translator.class) public interface TranslatorSource
A source for Translators, either by name or by property type.
| Method Summary | |
|---|---|
Translator |
findByType(Class valueType)
Finds a Translator that is appropriate to the given type, which is usually obtained via Binding.getBindingType(). |
Translator |
get(String name)
Returns the translator with the given logical name. |
Translator |
getByType(Class valueType)
Finds a Translator that is appropriate to the given type, which is usually obtained via Binding.getBindingType(). |
| Method Detail |
|---|
Translator get(String name)
name - name of translator (as configured)
RuntimeException - if no translator is configured for the provided nameTranslator findByType(Class valueType)
Translator that is appropriate to the given type, which is usually obtained via Binding.getBindingType(). Performs an inheritanced-based search for the best match.
valueType - the type of value for which a default translator is needed
Translator getByType(Class valueType)
Translator that is appropriate to the given type, which is usually obtained via Binding.getBindingType(). Performs an inheritanced-based search for the best match.
valueType - the type of value for which a default translator is needed
IllegalArgumentException - if no known validator matches the provided type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||