Package soot.util.annotations
Class ClassLoaderUtils
- java.lang.Object
-
- soot.util.annotations.ClassLoaderUtils
-
public class ClassLoaderUtils extends Object
Loads classes without relying on JBoss. A general note on dynamically loading classes based on information from target programs: You don't want that. It's a horrible idea, can lead to severe security vulnerabilities, and is bad style. Trust me. But people seem to need it, so this class makes it at least slightly less horrible than the old way. It's still insane, but now it's insanity with style. Somehow.- Author:
- Steven Arzt
-
-
Constructor Summary
Constructors Constructor Description ClassLoaderUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Class<?>loadClass(String className)Don't call me.static Class<?>loadClass(String className, boolean allowPrimitives)Don't call me.
-
-
-
Method Detail
-
loadClass
public static Class<?> loadClass(String className) throws ClassNotFoundException
Don't call me. Just don't.- Parameters:
className-- Returns:
- Throws:
ClassNotFoundException
-
loadClass
public static Class<?> loadClass(String className, boolean allowPrimitives) throws ClassNotFoundException
Don't call me. Just don't.- Parameters:
className-- Returns:
- Throws:
ClassNotFoundException
-
-