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:
  • Method Summary

    Modifier and Type
    Method
    Description
    locate(Locale locale)
    Returns URL containing the labels for the specified locale, or null if not available.
  • Method Details

    • 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