|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.duelengine.duel.util.ClassEnumerator
public final class ClassEnumerator
Utility for enumerating available classes in a particular package
| Constructor Summary | |
|---|---|
ClassEnumerator()
|
|
| Method Summary | |
|---|---|
static Set<Class<?>> |
getClasses(String packageName)
Loads classes in the specified package from the current thread ClassLoader |
static Set<Class<?>> |
getClasses(String packageName,
ClassLoader loader)
Loads classes in the specified package from the specified ClassLoader |
static Set<Class<?>> |
getFromDirectory(String packageName,
File directory)
Loads classes in the specified package from the specified directory |
static Set<Class<?>> |
getFromJAR(String packageName,
String jar)
Loads classes in the specified package from the specified JAR |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassEnumerator()
| Method Detail |
|---|
public static Set<Class<?>> getClasses(String packageName)
throws IOException,
ClassNotFoundException
packageName -
IOException
ClassNotFoundException
public static Set<Class<?>> getClasses(String packageName,
ClassLoader loader)
throws IOException,
ClassNotFoundException
packageName - loader -
IOException
ClassNotFoundException
public static Set<Class<?>> getFromDirectory(String packageName,
File directory)
throws ClassNotFoundException
packageName - directory -
ClassNotFoundException
public static Set<Class<?>> getFromJAR(String packageName,
String jar)
throws FileNotFoundException,
IOException,
ClassNotFoundException
packageName - jar -
FileNotFoundException
IOException
ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||