01: /* LabelLocator.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Thu Apr 7 14:16:39 2005, Created by tomyeh
10: }}IS_NOTE
11:
12: Copyright (C) 2005 Potix Corporation. All Rights Reserved.
13:
14: {{IS_RIGHT
15: This program is distributed under GPL Version 2.0 in the hope that
16: it will be useful, but WITHOUT ANY WARRANTY.
17: }}IS_RIGHT
18: */
19: package org.zkoss.util.resource;
20:
21: import java.util.Locale;
22: import java.net.URL;
23:
24: /**
25: * A locater used to locate extra resource for {@link Labels}.
26: * Once registered (by {@link Labels#register}), the label loader
27: * will invoke {@link #locate} to locate any extra resource.
28: * If so, it will load labels from it.
29: *
30: * @author tomyeh
31: */
32: public interface LabelLocator {
33: /** Returns URL for the specified locale, or null if not available.
34: * <p>It must be thread-safe.
35: */
36: public URL locate(Locale locale) throws Exception;
37: }
|