|
||||||||||
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)
Locate a resource, given a path and class. |
IResourceStream |
locate(Class<?> clazz,
String path,
String style,
String variation,
Locale locale,
String extension,
boolean strict)
Locate a resource by combining the given path, style, variation, locale and extension parameters. |
ResourceNameIterator |
newResourceNameIterator(String path,
Locale locale,
String style,
String variation,
String extension,
boolean strict)
Markup resources and Properties files both need to iterate over different combinations of locale, style, etc.. |
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, 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
- A comma separate list of extensionsstrict
- whether the specified attributes must match exactly
ResourceNameIterator newResourceNameIterator(String path, Locale locale, String style, String variation, String extension, boolean strict)
path
- 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
- A comma separate list of extensionsstrict
- whether the specified attributes must match exactly
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |