public class ReflectionLoading extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ReflectionLoading.ReflectionLoadingException
This class encapsulates all of the exceptions that can be thrown
when loading something by reflection.
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
loadByReflection(String className,
Object... arguments)
You can use this as follows:
String s = ReflectionLoading.loadByReflection("java.lang.String", "foo"); String s = ReflectionLoading.loadByReflection("java.lang.String"); Note that this uses generics for convenience, but this does nothing for compile-time error checking. |
public static <T> T loadByReflection(String className, Object... arguments)