|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IResourceStreamLocator
Interface for code that locates resources.
Method Summary | |
---|---|
IResourceStream |
locate(Class<?> clazz,
String path)
Loads a resource, given a path and class. |
IResourceStream |
locate(Class<?> clazz,
String path,
String style,
String variation,
Locale locale,
String extension)
Loads a resource, given a path, style, variation, locale and extension. |
IResourceStream |
locate(Class<?> clazz,
String path,
String style,
String variation,
Locale locale,
String extension,
boolean strict)
Loads a resource, given a path, style, variation, locale and extension. |
Method Detail |
---|
IResourceStream locate(Class<?> clazz, String path)
#locate(Class, String, String, Locale, String)
where the latter just takes care of
trying out the different combinations for the provided style and locale and uses this method
to actually load the resource stream.
clazz
- The class loader for delegating the loading of the resourcepath
- The path of the resource
IResourceStream locate(Class<?> clazz, String path, String style, String variation, Locale locale, String extension)
clazz
- The class loader for delegating the loading of the resourcepath
- The path of the resourcestyle
- Any resource style, such as a skin style (see Session
)variation
- The component's variation (of the style)locale
- The locale of the resource to loadextension
- The extension of the resource
IResourceStream locate(Class<?> clazz, String path, String style, String variation, Locale locale, String extension, boolean strict)
clazz
- The class loader for delegating the loading of the resourcepath
- The path of the resourcestyle
- Any resource style, such as a skin style (see Session
)variation
- The component's variation (of the style)locale
- The locale of the resource to loadextension
- The extension of the resourcestrict
- whether the specified attributes must match exactly
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |