public class ResourceBundleLabelLocator extends Object implements org.zkoss.util.resource.LabelLocator2
<bean id="myLabelLocator" class="com.hybris.cockpitng.util.labels.ResourceBundleLabelLocator"
scope="singleton" init-method="init" lazy-init="false">
<property name="location" value="/my/path/in/resources/labels/"/>
<property name="name" value="labels"/>
</bean>
| Constructor and Description |
|---|
ResourceBundleLabelLocator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCharset()
Returns "UTF-8".
|
void |
init()
Registers this label locator.
|
InputStream |
locate(Locale locale) |
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()
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 filespublic InputStream locate(Locale locale)
locate in interface org.zkoss.util.resource.LabelLocator2public String getCharset()
getCharset in interface org.zkoss.util.resource.LabelLocator2Copyright © 2018. All rights reserved.