|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.utils.inspection.ClasspathUtils
public final class ClasspathUtils
This class provides classpath searching tools for classes and files. It provides an abstraction of the Java classpath making easier the access to class path resources.
Nested Class Summary | |
---|---|
static interface |
ClasspathUtils.FilenameFilter
Defines the behavior of a filter whose filtering criteria is file-name based. |
Method Summary | |
---|---|
static List<String> |
getClasspathClassNames()
Returns an array of the classpath classes names. |
static List<String> |
getClasspathFileNames()
Returns the FQNs of all the classes on the classpath. |
static List<String> |
getClasspathFileNames(ClasspathUtils.FilenameFilter filter)
Returns an array of the classpath file names that match the given file name filter. |
static List<String> |
getClasspathFileNamesWithExtension(String extension)
Returns an array of the classpath files ending with a given extension/filename suffix. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static List<String> getClasspathClassNames() throws ResourceNotFoundException
ResourceNotFoundException
- if a Jar file can't be found or properly openedpublic static List<String> getClasspathFileNamesWithExtension(String extension) throws ResourceNotFoundException
extension
- the file extension/suffix
ResourceNotFoundException
- if a Jar file can't be found or properly openedpublic static List<String> getClasspathFileNames(ClasspathUtils.FilenameFilter filter) throws ResourceNotFoundException
filter
- the filter object
ResourceNotFoundException
- if a Jar file can't be found or properly openedpublic static List<String> getClasspathFileNames() throws ResourceNotFoundException
ResourceNotFoundException
- if a Jar file can't be found or properly opened
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |