|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.sahits.util.ClassFinder
public class ClassFinder
This class is a nice utility to retrive class Object that are anywhere on the classpath.
| Constructor Summary | |
|---|---|
ClassFinder()
Default constructur initializes the directories indicated by the CLASSPATH, if they are not yet initialized. |
|
| Method Summary | |
|---|---|
java.lang.Class[] |
getAll(java.lang.String packageName)
Retrive all classes of the indicated package. |
java.lang.Class[] |
getAll(java.lang.String packageName,
java.lang.String jarFileName)
Retrive all classes of the indicated package from the indicated jar file. |
java.lang.Class[] |
getAllRecursive(java.lang.String packageName)
Retrive all classes of the indicated package and all subpackages. |
java.lang.Class[] |
getAllRecursive(java.lang.String packageName,
java.lang.String jarFileName)
Retrive all classes of the indicated package and all subpackages from the indicated jar file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassFinder()
| Method Detail |
|---|
public java.lang.Class[] getAll(java.lang.String packageName)
throws java.lang.ClassNotFoundException
packageName - name of the package as 'ch.sahits.civ'
java.lang.ClassNotFoundException
public java.lang.Class[] getAllRecursive(java.lang.String packageName)
throws java.lang.ClassNotFoundException
packageName - name of the package as 'ch.sahits.civ'
java.lang.ClassNotFoundException
public java.lang.Class[] getAll(java.lang.String packageName,
java.lang.String jarFileName)
packageName - name of the package as 'ch.sahits.civ'jarFileName - name of the jar file
java.lang.ClassNotFoundException
public java.lang.Class[] getAllRecursive(java.lang.String packageName,
java.lang.String jarFileName)
packageName - name of the package as 'ch.sahits.civ'jarFileName - name of the jar file
java.lang.ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||