public class BackofficeModulesLabelLocatorInit
extends java.lang.Object
| Constructor and Description |
|---|
BackofficeModulesLabelLocatorInit() |
| Modifier and Type | Method and Description |
|---|---|
protected ResourcesLabelLocator |
createResourcesLabelLocator(java.lang.String resourceName)
Creates a
ResourcesLabelLocator with the given resource name and the current location. |
protected java.util.List<java.lang.String> |
getAllBackofficeExtensionNames()
Returns all backoffice module extension names in build order.
|
protected CockpitLocaleService |
getLocaleService() |
protected java.lang.String |
getNormalizedLocation(java.lang.String location)
Removes a possible leading or trailing '/'.
|
void |
init()
Registers label locators for all backoffice module extensions.
|
void |
setLocaleService(CockpitLocaleService localeService) |
void |
setLocation(java.lang.String location)
Sets the location of the localization files in resources.
|
void |
setName(java.lang.String name)
Sets the prefix of the label files.
|
public void init()
protected ResourcesLabelLocator createResourcesLabelLocator(java.lang.String resourceName)
ResourcesLabelLocator with the given resource name and the current location.protected java.util.List<java.lang.String> getAllBackofficeExtensionNames()
protected java.lang.String getNormalizedLocation(java.lang.String location)
public void setLocation(java.lang.String location)
location - location of the localization files within resources (a package)public void setName(java.lang.String name)
setLocation(String)). For example: setting the name to 'labels' will look for files with naming scheme
labels_name - prefix of the label filesprotected CockpitLocaleService getLocaleService()
public void setLocaleService(CockpitLocaleService localeService)
Copyright © 2018 SAP SE. All Rights Reserved.