org.apache.wicket.util.resource.locator
Class OsgiResourceStreamLocator
java.lang.Object
org.apache.wicket.util.resource.locator.ResourceStreamLocator
org.apache.wicket.util.resource.locator.OsgiResourceStreamLocator
- All Implemented Interfaces:
- IResourceStreamLocator
public class OsgiResourceStreamLocator
- extends ResourceStreamLocator
OSGI specific resource stream factory
- Author:
- Juergen Donnerstag
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OsgiResourceStreamLocator
public OsgiResourceStreamLocator()
- Construct.
OsgiResourceStreamLocator
public OsgiResourceStreamLocator(IResourceFinder finder)
- Construct.
- Parameters:
finder
-
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 of
#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.
- Specified by:
locate
in interface IResourceStreamLocator
- Overrides:
locate
in class ResourceStreamLocator
- 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)
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.