public class WebappLabelLocator extends Object implements org.zkoss.util.resource.LabelLocator, org.springframework.web.context.ServletContextAware
<bean id="mywebappLabelLocator" class="com.hybris.cockpitng.util.labels.WebappLabelLocator" scope=
"singleton" init-method="init" lazy-init="false">
<property name="location" value="/WEB-INF/labels"/>
<property name="name" value="labels"/>
</bean>
| Constructor and Description |
|---|
WebappLabelLocator() |
| Modifier and Type | Method and Description |
|---|---|
void |
init()
Registers this label locator.
|
URL |
locate(Locale locale) |
void |
setLocation(String location)
Sets the location of the localization files within your web application.
|
void |
setName(String name)
Sets the prefix of the label files.
|
void |
setServletContext(javax.servlet.ServletContext servletContext) |
public void init()
public void setLocation(String location)
location - location of the localization files within your web application (a directory)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 URL locate(Locale locale)
locate in interface org.zkoss.util.resource.LabelLocatorpublic void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext in interface org.springframework.web.context.ServletContextAwareCopyright © 2018. All rights reserved.