|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--xdoclet.util.ClasspathManager
Finds directories and jars on the classpath.
| Nested Class Summary | |
static class |
ClasspathManager.DirFilter
|
static class |
ClasspathManager.FileFilterPredicate
Adapter class that makes it possible to use a class as both a Commons Collections Predicate and FileFilter. |
static class |
ClasspathManager.JarFilter
|
| Field Summary | |
static ClasspathManager.DirFilter |
DIR_FILTER
|
static ClasspathManager.JarFilter |
JAR_FILTER
|
static String |
PATH_DELIM
|
| Constructor Summary | |
ClasspathManager(String classpath)
Constructs a new ClasspathManager. |
|
| Method Summary | |
List |
findJavaBeans()
Returns all Java Bean classes on the classpath. |
static List |
findJavaBeans(ClassLoader beanClassLoader,
File dirOrJar)
Returns a collection of classes that are Java Beans. |
String |
getClasspath()
Gets the classpath where plugins are looked for. |
Collection |
getDirectories()
Returns the existing directories on the classpath. |
Collection |
getFiles()
Gets all the files on the classpath that exist, both directories and files. |
Collection |
getJars()
Returns the existing zip/jar files on the classpath. |
static String |
getNiceClasspath(String classpath)
|
static String |
getPackage(Class clazz)
|
URL |
getResource(String relativePath)
Returns a resource from the classpath, taking the first it finds. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final ClasspathManager.JarFilter JAR_FILTER
public static final ClasspathManager.DirFilter DIR_FILTER
public static final String PATH_DELIM
| Constructor Detail |
public ClasspathManager(String classpath)
classpath - where plugin jars and directories will be searched for| Method Detail |
public static String getNiceClasspath(String classpath)
public Collection getFiles()
public final Collection getJars()
public final Collection getDirectories()
public URL getResource(String relativePath)
relativePath -
public String getClasspath()
public List findJavaBeans()
Class.
public static List findJavaBeans(ClassLoader beanClassLoader,
File dirOrJar)
beanClassLoader - the ClassLoader used to load the bean classes.dirOrJar - the directory of jar file containing the classes.
Class.public static String getPackage(Class clazz)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||