Class OsgiResourceStreamLocator
- java.lang.Object
-
- org.apache.wicket.core.util.resource.locator.ResourceStreamLocator
-
- org.apache.wicket.core.util.resource.locator.OsgiResourceStreamLocator
-
- All Implemented Interfaces:
IResourceStreamLocator
public class OsgiResourceStreamLocator extends ResourceStreamLocator
OSGI specific resource stream factory- Author:
- Juergen Donnerstag
-
-
Constructor Summary
Constructors Constructor Description OsgiResourceStreamLocator()
Construct.OsgiResourceStreamLocator(IResourceFinder finder)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IResourceStream
locate(Class<?> clazz, String path)
Locate a resource, given a path and class.-
Methods inherited from class org.apache.wicket.core.util.resource.locator.ResourceStreamLocator
locate, newResourceNameIterator, newResourceNameIterator
-
-
-
-
Constructor Detail
-
OsgiResourceStreamLocator
public OsgiResourceStreamLocator()
Construct.
-
OsgiResourceStreamLocator
public OsgiResourceStreamLocator(IResourceFinder finder)
Construct.- Parameters:
finder
-
-
-
Method Detail
-
locate
public IResourceStream locate(Class<?> clazz, String path)
Description copied from interface:IResourceStreamLocator
Locate a resource, given a path and class. Typically this method is either called by external clients if they are not interested in a lookup that takes the style and locale into account, or it is called by the implementation ofIResourceStreamLocator.locate(Class, String, String, String, java.util.Locale, String, boolean)
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.- Specified by:
locate
in interfaceIResourceStreamLocator
- Overrides:
locate
in classResourceStreamLocator
- Parameters:
clazz
- The class loader for delegating the loading of the resourcepath
- The path of the resource- Returns:
- The resource or null
- See Also:
ResourceStreamLocator.locate(java.lang.Class, java.lang.String)
-
-