|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wicket.util.resource.locator.CompoundResourceStreamLocator
public final class CompoundResourceStreamLocator
A resource locator that looks in default places for resources. At the present time, the given finder and the default classloader are searched.
Constructor Summary | |
---|---|
CompoundResourceStreamLocator(IResourceFinder finder)
Constructor |
Method Summary | |
---|---|
void |
add(int index,
IResourceStreamLocator locator)
Add a resource stream locator |
void |
add(IResourceStreamLocator locator)
Add a resource stream locator |
IResourceStream |
locate(java.lang.Class clazz,
java.lang.String path,
java.lang.String style,
java.util.Locale locale,
java.lang.String extension)
Loads a resource, given a path, style, locale and extension. |
IResourceStreamLocator |
remove(int index)
Remove locator from list |
boolean |
remove(IResourceStreamLocator locator)
Remove locator from list |
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompoundResourceStreamLocator(IResourceFinder finder)
finder
- The finder to searchMethod Detail |
---|
public IResourceStream locate(java.lang.Class clazz, java.lang.String path, java.lang.String style, java.util.Locale locale, java.lang.String extension)
IResourceStreamLocator
locate
in interface IResourceStreamLocator
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
)locale
- The locale of the resource to loadextension
- The extension of the resource
IResourceStreamLocator.locate(java.lang.Class,
java.lang.String, java.lang.String, java.util.Locale,
java.lang.String)
public void add(int index, IResourceStreamLocator locator)
index
- locator
- public void add(IResourceStreamLocator locator)
locator
- public IResourceStreamLocator remove(int index)
index
-
public boolean remove(IResourceStreamLocator locator)
locator
-
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |