Package org.nuxeo.runtime.test
Class TargetResourceLocator
- java.lang.Object
-
- org.nuxeo.runtime.test.TargetResourceLocator
-
public class TargetResourceLocator extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Pathbasepathprotected ClassLoaderloader
-
Constructor Summary
Constructors Constructor Description TargetResourceLocator(Class<?> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Pathbasepath(Class<?> clazz)protected intdepthOfClass(String name)PathgetBasepath()URLgetTargetTestResource(String name)protected PathtoPath(URI uri)
-
-
-
Field Detail
-
loader
protected final ClassLoader loader
-
basepath
protected final Path basepath
-
-
Constructor Detail
-
TargetResourceLocator
public TargetResourceLocator(Class<?> clazz)
-
-
Method Detail
-
getBasepath
public Path getBasepath()
-
depthOfClass
protected int depthOfClass(String name)
-
getTargetTestResource
public URL getTargetTestResource(String name) throws IOException
- Throws:
IOException
-
toPath
protected Path toPath(URI uri) throws IOException
- Throws:
IOException
-
-