|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.equanda.util.ReflectionUtil
public final class ReflectionUtil
based on the ReflectionUtil class in m-m-m
| Field Summary | |
|---|---|
static ReflectionUtil |
INSTANCE
This is the singleton instance of this ReflectionUtil. |
| Method Summary | |
|---|---|
Set<String> |
findClassNames(String packageName,
boolean includeSubPackages)
This method finds all classes that are located in the package identified by the given packageName. |
void |
findClassNames(String packageName,
boolean includeSubPackages,
Set<String> classSet)
This method finds all classes that are located in the package identified by the given packageName. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ReflectionUtil INSTANCE
ReflectionUtil. Instead of declaring the methods static, we
declare this static instance what gives the same way of access while still allowing a design for extension by
inheriting from this class.
| Method Detail |
|---|
public Set<String> findClassNames(String packageName,
boolean includeSubPackages)
throws IOException
packageName.
packageName - is the name of the Package to scan.includeSubPackages - - if true all sub-packages of the specified Package will be
included in the search.
Set will the fully qualified names of all requested classes.
IOException - if the operation failed with an I/O error.
public void findClassNames(String packageName,
boolean includeSubPackages,
Set<String> classSet)
throws IOException
packageName.
packageName - is the name of the Package to scan.includeSubPackages - - if true all sub-packages of the specified Package will be
included in the search.classSet - is where to add the classes.
IOException - if the operation failed with an I/O error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||