|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.model.java.AbstractJavaModelFactory
org.apache.jdo.impl.model.java.reflection.ReflectionJavaModelFactory
org.apache.jdo.impl.model.java.runtime.RuntimeJavaModelFactory
A reflection based JavaModelFactory implementation used at runtime.
The implementation takes java.lang.Class
and
java.lang.reflect.Field
instances to get Java related
metadata about types and fields. This implementation caches JavaModel
instance sper ClassLoader.
RuntimeJavaModelFactory 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.
Constructor Summary | |
protected |
RuntimeJavaModelFactory()
Creates a new RuntimeJavaModelFactory. |
Method Summary | |
protected static void |
checkPermission()
This method checks that the caller is authorized for JDOPermission("getMetadata") , and if not, throws
ModelFatalException wrapping the SecurityException. |
static RuntimeJavaModelFactory |
getInstance()
Returns the singleton instance of RuntimeJavaModelFactory. |
protected org.apache.jdo.model.java.JavaModel |
newJavaModelInstance(java.lang.ClassLoader classLoader)
Creates a new instance of the JavaModel implementation class. |
protected void |
registerFactory()
Registers this JavaModelFactory instance at the JDOImplHelper. |
Methods inherited from class org.apache.jdo.impl.model.java.reflection.ReflectionJavaModelFactory |
createJavaModel, forNamePrivileged, getClassLoaderPrivileged, getJavaClass, getJavaType |
Methods inherited from class org.apache.jdo.impl.model.java.AbstractJavaModelFactory |
getJavaModel, removeJavaModel, removeJavaModel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected RuntimeJavaModelFactory()
getInstance()
should be used.
Method Detail |
public static RuntimeJavaModelFactory 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 static void checkPermission() 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 void registerFactory()
protected org.apache.jdo.model.java.JavaModel newJavaModelInstance(java.lang.ClassLoader classLoader)
This implementation returns a RuntimeJavaModel
instance.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |