| Modifier and Type | Method and Description |
|---|---|
static SystemException |
SystemException.wrap(Throwable exception,
Translator translator) |
| Constructor and Description |
|---|
SystemException(String message,
Throwable throwable,
Translator translator) |
SystemException(String message,
Translator translator) |
| Constructor and Description |
|---|
ScheduledTaskDefinitionBuilder(Translator translator) |
| Modifier and Type | Field and Description |
|---|---|
protected Translator |
ComponentDefinitionBuilder.translator |
| Constructor and Description |
|---|
ComponentDefinitionBuilder(Translator translator) |
| Constructor and Description |
|---|
DataSourceDefinitionBuilder(Translator translator) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ClassLoaderTranslator
Extension of Translator that enables registration of translator for given
class loader.
|
interface |
PackageTranslator
Extension of Translator that enables registration of translator for given packages.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractTranslator
Common Translator implementation.
|
class |
EmptyTranslator
Translator implementation that always returns value of given key.
|
class |
PropertiesTranslator
Default Translator implementation based on
*.properties files with key-based
translations. |
| Modifier and Type | Method and Description |
|---|---|
Translator |
TranslatorRegistry.forClass(Class<?> clazz)
Returns Translator for package of given class registered in
TranslatorScope.SERVER scope.
|
static Translator |
Translators.get(Class<?> clazz)
Return translator for given class
|
static Translator |
Translators.get(String name)
Return translator withi given name.
|
Translator |
TranslatorRegistry.get(String name)
Returns Translator with given name for scope
TranslatorScope.SERVER. |
static Translator |
Translators.get(String name,
TranslatorScope scope)
Return translator withi given name and scope.
|
Translator |
TranslatorRegistry.get(String name,
TranslatorScope scope)
Returns Translator with given name and scope.
|
Translator |
AbstractTranslator.getParent() |
Translator |
TranslatorRegistration.translator()
Returns translator
|
| Modifier and Type | Method and Description |
|---|---|
static List<Translator> |
Translators.getAll(TranslatorScope scope) |
List<Translator> |
TranslatorRegistry.getAll(TranslatorScope scope)
Returns all translators Translator with given scope.
|
static Map<String,Translator> |
Translators.getAllByName(TranslatorScope scope) |
Map<String,Translator> |
TranslatorRegistry.getAllByName(TranslatorScope scope)
Returns the map of all translators with the given scope, where key is the translator name.
|
| Modifier and Type | Method and Description |
|---|---|
TranslatorRegistration |
TranslatorRegistry.register(String name,
Translator translator,
TranslatorScope scope)
Registers given translator under provided name in given scope.
|
void |
AbstractTranslator.setParent(Translator parent)
Sets this translator parent.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
TranslationSupport.getMessage(String value,
List<Translator> translators) |
static String |
TranslationSupport.getMessageOrDefault(String value,
String defaultValue,
List<Translator> translators) |
| Constructor and Description |
|---|
AbstractTranslator(Translator parent) |
LocalizedString(String key,
String[] fallbackKeys,
String defaultValue,
Translator translator,
Locale locale,
Object... args) |
LocalizedString(String key,
String defaultValue,
Translator translator,
Locale locale,
Object... args) |
LocalizedString(String key,
Translator translator,
Object... args) |
| Constructor and Description |
|---|
ApplicationDefinitionBuilder(Translator translator) |
| Constructor and Description |
|---|
ActionDefinitionBuilder(Translator translator) |
| Constructor and Description |
|---|
DataChooserDefinitionBuilder(Translator translator) |
| Modifier and Type | Method and Description |
|---|---|
Event |
Event.EventBuilder.build(Translator translator) |
| Constructor and Description |
|---|
EventActionDefinitionBuilder(Translator translator) |
| Constructor and Description |
|---|
ValidatorDefinitionBuilder(Translator translator) |
| Constructor and Description |
|---|
VariableSetterDefinitionBuilder(Translator translator) |
| Constructor and Description |
|---|
CommonDefinitionBuilder(Translator translator) |
Copyright © 2023 Suncode. All rights reserved.