public class JDK5RuntimeJavaModelFactory extends RuntimeJavaModelFactory
java.lang.Class
and
java.lang.reflect.Field
instances to get Java related
metadata about types and fields. This implementation caches JavaModel
instances per ClassLoader.
JDK5RuntimeJavaModelFactory implements the singleton pattern; method
getInstance()
provides access to the singleton factory
instance. This method also registers a model listener at the
JDOImplHelper to handle the runtime metadata as generated by the
enhancer.
Modifier | Constructor and Description |
---|---|
protected |
JDK5RuntimeJavaModelFactory()
Creates a new RuntimeJavaModelFactory.
|
Modifier and Type | Method and Description |
---|---|
static JDK5RuntimeJavaModelFactory |
getInstance()
Returns the singleton instance of JDK5RuntimeJavaModelFactory.
|
protected org.apache.jdo.model.java.JavaModel |
newJavaModelInstance(java.lang.ClassLoader classLoader)
Creates a new instance of the JavaModel implementation class.
|
checkPermission, registerFactory
createJavaModel, forNamePrivileged, getClassLoaderPrivileged, getJavaClass, getJavaType
protected JDK5RuntimeJavaModelFactory()
getInstance()
should be used.public static JDK5RuntimeJavaModelFactory getInstance() throws org.apache.jdo.model.ModelFatalException
JDOPermission("getMetadata")
, and if not, throws
ModelFatalException
wrapping the SecurityException.org.apache.jdo.model.ModelFatalException
- if the caller does not have the
getMetadata permission.protected org.apache.jdo.model.java.JavaModel newJavaModelInstance(java.lang.ClassLoader classLoader)
This implementation returns a JDK5RuntimeJavaModel
instance.
newJavaModelInstance
in class RuntimeJavaModelFactory
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.