01: /*
02: * $Id: IResourceStreamLocator.java 458777 2006-01-19 20:52:49Z jdonnerstag $
03: * $Revision: 458777 $ $Date: 2006-01-19 21:52:49 +0100 (Thu, 19 Jan 2006) $
04: *
05: * ==============================================================================
06: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
07: * use this file except in compliance with the License. You may obtain a copy of
08: * the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15: * License for the specific language governing permissions and limitations under
16: * the License.
17: */
18: package wicket.util.resource.locator;
19:
20: import java.util.Locale;
21:
22: import wicket.util.resource.IResourceStream;
23:
24: /**
25: * Interface for code that locates resources.
26: *
27: * @author Jonathan Locke
28: */
29: public interface IResourceStreamLocator {
30: /**
31: * Loads a resource, given a path, style, locale and extension.
32: *
33: * @param clazz
34: * The class loader for delegating the loading of the resource
35: * @param path
36: * The path of the resource
37: * @param style
38: * Any resource style, such as a skin style (see
39: * {@link wicket.Session})
40: * @param locale
41: * The locale of the resource to load
42: * @param extension
43: * The extension of the resource
44: *
45: * @return The resource
46: */
47: public IResourceStream locate(Class clazz, String path,
48: String style, Locale locale, String extension);
49: }
|