public abstract class ReflectionJavaModelFactory extends AbstractJavaModelFactory
| Constructor and Description |
|---|
ReflectionJavaModelFactory() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Class |
forNamePrivileged(java.lang.String name,
boolean initialize,
java.lang.ClassLoader loader)
Calls Class.forName in a doPrivileged block.
|
static java.lang.ClassLoader |
getClassLoaderPrivileged(java.lang.Class clazz)
Calls getClassLoader on the specified Class instance in a
doPrivileged block.
|
createJavaModel, getJavaModel, getJavaTypepublic static java.lang.ClassLoader getClassLoaderPrivileged(java.lang.Class clazz)
clazz - the class to get the ClassLoader from.ModelFatalException - wraps the SecurityException thrown by
getClassLoader.public static java.lang.Class forNamePrivileged(java.lang.String name,
boolean initialize,
java.lang.ClassLoader loader)
throws java.lang.ClassNotFoundException
name - fully qualified name of the desired classinitialize - whether the class must be initializedloader - class loader from which the class must be loadedModelFatalException - wraps the SecurityException thrown by
getClassLoader.java.lang.ClassNotFoundException - if the class cannot be located by the
specified class loader.Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.