|
intarsys runtime library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.tools.reflect.ClassTools
public class ClassTools
Tool class to enhance the reflective capabilities about classes.
Method Summary | ||
---|---|---|
static List |
collectClasses(String classPath)
Create a list of all classes that are available from classPath. |
|
static List |
collectClassNames(String classPath)
Create a list of class names in dot notation that can be found in the classPath. |
|
static
|
createClass(String className,
Class<T> expectedClass,
ClassLoader classLoader)
|
|
static ClassLoader |
createClassLoader(String classPath)
Create a new ClassLoader on the specified classpath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static List collectClasses(String classPath) throws IOException
Be aware that the classes are loaded and so any static code is executed.
classPath
- The classpath to inspect
IOException
public static List collectClassNames(String classPath) throws IOException
classPath
- The classpath to inspect
IOException
public static <T> Class<T> createClass(String className, Class<T> expectedClass, ClassLoader classLoader) throws ObjectCreationException
ObjectCreationException
public static ClassLoader createClassLoader(String classPath)
classPath
- The classpath we want to load from.
|
intarsys runtime library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |