|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.services.TranslatorSourceImpl
public class TranslatorSourceImpl
Constructor Summary | |
---|---|
TranslatorSourceImpl(Map<Class,Translator> configuration)
|
|
TranslatorSourceImpl(Map<Class,Translator> configuration,
Map<String,Translator> alternates)
|
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 name (either a standard translator, or an alternate). |
Translator |
getByType(Class valueType)
Finds a Translator that is appropriate to the given type, which is usually obtained via
Binding.getBindingType() . |
void |
objectWasInvalidated()
Invoked to indicate that some object is invalid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TranslatorSourceImpl(Map<Class,Translator> configuration)
public TranslatorSourceImpl(Map<Class,Translator> configuration, Map<String,Translator> alternates)
Method Detail |
---|
public Translator get(String name)
TranslatorSource
get
in interface TranslatorSource
name
- name of translator (as configured, but case is ignored)
public Translator getByType(Class valueType)
TranslatorSource
Translator
that is appropriate to the given type, which is usually obtained via
Binding.getBindingType()
. Performs an inheritance-based search for the best match,
among the standard translators (not alternates).
getByType
in interface TranslatorSource
valueType
- the type of value for which a default translator is needed
public Translator findByType(Class valueType)
TranslatorSource
Translator
that is appropriate to the given type, which is usually obtained via
Binding.getBindingType()
. Performs an inheritance-based search for the best match,
among the standard translator (not alternates).
findByType
in interface TranslatorSource
valueType
- the type of value for which a default translator is needed
public void objectWasInvalidated()
InvalidationListener
objectWasInvalidated
in interface InvalidationListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |