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