|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.csdn.common.scan.component.ClasspathUrlFinder
public class ClasspathUrlFinder
| Constructor Summary | |
|---|---|
ClasspathUrlFinder()
|
|
| Method Summary | |
|---|---|
static URL |
findClassBase(Class clazz)
Find the classpath for the particular class |
static URL[] |
findClassPaths()
Uses the java.class.path system property to obtain a list of URLs that represent the CLASSPATH |
static URL[] |
findClassPaths(String... paths)
Uses the java.class.path system property to obtain a list of URLs that represent the CLASSPATH paths is used as a filter to only include paths that have the specific relative file within it |
static URL |
findResourceBase(String baseResource)
Find the classpath URL for a specific classpath resource. |
static URL |
findResourceBase(String baseResource,
ClassLoader loader)
Find the classpath URL for a specific classpath resource. |
static URL[] |
findResourceBases(String baseResource)
Find the classpath URLs for a specific classpath resource. |
static URL[] |
findResourceBases(String baseResource,
ClassLoader loader)
Find the classpath URLs for a specific classpath resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClasspathUrlFinder()
| Method Detail |
|---|
public static URL[] findResourceBases(String baseResource,
ClassLoader loader)
baseResource -
public static URL[] findResourceBases(String baseResource)
baseResource -
public static URL findResourceBase(String baseResource)
baseResource -
public static URL findResourceBase(String baseResource,
ClassLoader loader)
baseResource - loader -
public static URL findClassBase(Class clazz)
clazz -
public static URL[] findClassPaths()
public static URL[] findClassPaths(String... paths)
paths - comma list of files that should exist in a particular path
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||