public class OsgiResourceStreamLocator extends ResourceStreamLocator
Constructor and Description |
---|
OsgiResourceStreamLocator()
Construct.
|
OsgiResourceStreamLocator(IResourceFinder finder)
Construct.
|
Modifier and Type | Method and Description |
---|---|
IResourceStream |
locate(Class<?> clazz,
String path)
Locate a resource, given a path and class.
|
locate, newResourceNameIterator, newResourceNameIterator
public OsgiResourceStreamLocator()
public OsgiResourceStreamLocator(IResourceFinder finder)
finder
- public IResourceStream locate(Class<?> clazz, String path)
IResourceStreamLocator
IResourceStreamLocator.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.locate
in interface IResourceStreamLocator
locate
in class ResourceStreamLocator
clazz
- The class loader for delegating the loading of the resourcepath
- The path of the resourceResourceStreamLocator.locate(java.lang.Class,
java.lang.String)
Copyright © 2006–2014 Apache Software Foundation. All rights reserved.