|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.scannotation.ClasspathUrlFinder
public class ClasspathUrlFinder
Various functions to locate URLs to scan
| Constructor Summary | |
|---|---|
ClasspathUrlFinder()
|
|
| Method Summary | |
|---|---|
static java.net.URL |
findClassBase(java.lang.Class clazz)
Find the classpath for the particular class |
static java.net.URL[] |
findClassPaths()
Uses the java.class.path system property to obtain a list of URLs that represent the CLASSPATH |
static java.net.URL[] |
findClassPaths(java.lang.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 java.net.URL |
findResourceBase(java.lang.String baseResource)
Find the classpath URL for a specific classpath resource. |
static java.net.URL |
findResourceBase(java.lang.String baseResource,
java.lang.ClassLoader loader)
Find the classpath URL for a specific classpath resource. |
static java.net.URL[] |
findResourceBases(java.lang.String baseResource)
Find the classpath URLs for a specific classpath resource. |
static java.net.URL[] |
findResourceBases(java.lang.String baseResource,
java.lang.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 java.net.URL[] findResourceBases(java.lang.String baseResource,
java.lang.ClassLoader loader)
baseResource -
public static java.net.URL[] findResourceBases(java.lang.String baseResource)
baseResource -
public static java.net.URL findResourceBase(java.lang.String baseResource)
baseResource -
public static java.net.URL findResourceBase(java.lang.String baseResource,
java.lang.ClassLoader loader)
baseResource - loader -
public static java.net.URL findClassBase(java.lang.Class clazz)
clazz -
public static java.net.URL[] findClassPaths()
public static java.net.URL[] findClassPaths(java.lang.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 | |||||||||