org.zkoss.util.resource
Interface LabelLocator

All Known Implementing Classes:
ServletLabelLocator

public interface LabelLocator

A locater used to locate extra resource for Labels. Once registered (by Labels.register(LabelLocator)), the label loader will invoke locate(java.util.Locale) to locate any extra resource.

If the resource is not easy to be represented in URL, you could implement LabelLocator2 instead.

Author:
tomyeh
See Also:
LabelLocator2

Method Summary
 java.net.URL locate(java.util.Locale locale)
          Returns URL containing the labels for the specified locale, or null if not available.
 

Method Detail

locate

java.net.URL locate(java.util.Locale locale)
                    throws java.lang.Exception
Returns URL containing the labels for the specified locale, or null if not available.

It must be thread-safe.

Throws:
java.lang.Exception


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo