public class DefaultC10NAnnotations extends C10NConfigBase
C10NConfigBase.C10NAnnotationBinder, C10NConfigBase.C10NFilterBinder<T>, C10NConfigBase.C10NImplementationBinder<T>| Constructor and Description |
|---|
DefaultC10NAnnotations() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure()
To be implemented by subclasses of
C10NConfigBase. |
protected String |
getConfigurationPackage()
Always returns an empty package name to make
sure this configuration is always the parent
of all other configurations in the hierarchy
|
bind, bindAnnotation, bindBundle, bindFilter, bindFilter, install, setDebug, setKeyPrefix, setLocale, setLocaleProvider, setUntranslatedMessageHandlerprotected String getConfigurationPackage()
Always returns an empty package name to make sure this configuration is always the parent of all other configurations in the hierarchy
getConfigurationPackage in class C10NConfigBaseprotected void configure()
C10NConfigBaseTo be implemented by subclasses of C10NConfigBase.
Configuration methods are as follows:
C10NConfigBase.bindAnnotation(Class) - binds annotation that holds translation for a specific locale.C10NConfigBase.bindBundle(String) - binds a resource bundle containing translated messages.C10NConfigBase.install(C10NConfigBase) - includes configuration from another c10n configuration moduleC10NConfigBase.bind(Class) - binds a custom class as an implementation for the given c10n interfaceC10NConfigBase.setLocaleProvider(LocaleProvider) - customises the locale retrieval logicC10NConfigBase.setUntranslatedMessageHandler(UntranslatedMessageHandler) - customises the placeholder for
unresolved translation mappingsC10NConfigBase.setKeyPrefix(String) - sets global key prefix to auto-prepend to all bundle keysconfigure in class C10NConfigBaseCopyright © 2013. All Rights Reserved.