T - the type that is used to cast a type that was found in the class pathpublic class ClassForNameResolver<T>
extends java.lang.Object
| Constructor and Description |
|---|
ClassForNameResolver(java.lang.Class<T> classToCast)
Create new class resolver.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<? extends T> |
classForName(java.lang.String classname)
This method tries to find a class with the given name.
|
public ClassForNameResolver(java.lang.Class<T> classToCast)
classToCast - class to castpublic final java.lang.Class<? extends T> classForName(java.lang.String classname) throws java.lang.ClassNotFoundException
classname - The name of the class.Class instance corresponding to the given name, if it exists.java.lang.ClassNotFoundException - when the class is not knownCopyright 2020 Kieker Project, http://kieker-monitoring.net