public class JDK5RuntimeJavaModel extends RuntimeJavaModel
java.lang.Class
and
java.lang.reflect.Field
instances to get Java related
metadata about types and fields.
The RuntimeJavaModelFactory caches JavaModel instances per ClassLoader. The RuntimeJavaModel implementation will use this ClassLoader to lookup any type by name. This makes sure that the type name is unique.
Constructor and Description |
---|
JDK5RuntimeJavaModel(java.lang.ClassLoader classLoader,
JDK5RuntimeJavaModelFactory declaringJavaModelFactory)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.jdo.model.java.JavaType |
newJavaTypeInstance(java.lang.Class clazz)
Creates a new instance of the JavaType implementation class.
|
getJavaType, getJavaType
getClassLoader, getDeclaringJavaModelFactory, getInputStreamForResource, getJavaTypeInternal, getJDOModel
public JDK5RuntimeJavaModel(java.lang.ClassLoader classLoader, JDK5RuntimeJavaModelFactory declaringJavaModelFactory)
protected org.apache.jdo.model.java.JavaType newJavaTypeInstance(java.lang.Class clazz)
This implementation returns a RuntimeJavaType instance.
newJavaTypeInstance
in class RuntimeJavaModel
clazz
- the Class instance representing the typeCopyright © 2005-2012 Apache Software Foundation. All Rights Reserved.