org.zkoss.util.resource
Interface LabelLocator


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
 URL locate(Locale locale)
          Returns URL containing the labels for the specified locale, or null if not available.
 

Method Detail

locate

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

It must be thread-safe.

Throws:
Exception


Copyright © 2011. All Rights Reserved.