Interface KeyGenerator
-
- All Known Implementing Classes:
FullyQualifiedMethodNameKeyGenerator
,MD5KeyGenerator
,MethodNameKeyGenerator
@Deprecated public interface KeyGenerator
Deprecated.UseKeyGenerator
instead.Interface for key generation algorithms used byLocalizableResource
implementations. Implementations of this interface are executed at compile time, and therefore must not contain any JSNI code.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.String
generateKey(java.lang.String className, java.lang.String methodName, java.lang.String text, java.lang.String meaning)
Deprecated.Generates a key for a given method with its default text and meaning.
-
-
-
Method Detail
-
generateKey
java.lang.String generateKey(java.lang.String className, java.lang.String methodName, java.lang.String text, java.lang.String meaning)
Deprecated.Generates a key for a given method with its default text and meaning.- Parameters:
className
- fully qualified name of the Messages/Constants subinterfacemethodName
- name of the method in the subinterfacetext
- default text to use if no translation is available, which may be null if no default text is suppliedmeaning
- extra text explaining the meaning of the text, or null if not needed- Returns:
- the lookup key as a string or null if the key cannot be computed (for example, if text is null but this generator requires it)
-
-