Class ResourcepathDigger
java.lang.Object
clazzfish.monitor.internal.AbstractDigger
clazzfish.monitor.internal.ClasspathDigger
clazzfish.monitor.internal.ResourcepathDigger
This is the sister of the
ClasspathDigger
. It digs into the
classpath to find resources and resource problems.- Since:
- 1.7.2 (26.05.2017)
- Version:
- $Revision: 1.5 $
- Author:
- oboehm
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new digger for resources.ResourcepathDigger
(ClassLoader cloader) Instantiates a new digger for resources. -
Method Summary
Modifier and TypeMethodDescriptionDigs into the classpath and returns the found resources.static URI
whichResource
(String name, ClassLoader cloader) Returns the URI of the given resource and the given classloader.Methods inherited from class clazzfish.monitor.internal.ClasspathDigger
getBootClasspath, getClasses, getClassLoader, getClasspath, getClasspath, getClasspathFromPackages, getLoadedClasses, getLoadedPackageArray, getLoadedResources, getPackageArray, getResourcepathSet, getResources, isAgentAvailable, isClassloaderSupported, isLoaded, toString, whichResource
Methods inherited from class clazzfish.monitor.internal.AbstractDigger
readElementsFromNestedArchive
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
ResourcepathDigger
public ResourcepathDigger()Instantiates a new digger for resources. -
ResourcepathDigger
Instantiates a new digger for resources.- Parameters:
cloader
- the classloder used for digging
-
-
Method Details
-
getResources
-
whichResource
Returns the URI of the given resource and the given classloader. If the resource is not found it will be tried again with/without a leading "/" and with the parent classloader.- Parameters:
name
- resource name (e.g. "log4j.properties")cloader
- class loader- Returns:
- URI of the given resource (or null if resource was not found)
-