org.apache.jdo.impl.model.java.runtime.jdk5
Class JDK5RuntimeJavaType

java.lang.Object
  extended by org.apache.jdo.impl.model.java.AbstractJavaType
      extended by org.apache.jdo.impl.model.java.BaseReflectionJavaType
          extended by org.apache.jdo.impl.model.java.reflection.ReflectionJavaType
              extended by org.apache.jdo.impl.model.java.runtime.RuntimeJavaType
                  extended by org.apache.jdo.impl.model.java.runtime.jdk5.JDK5RuntimeJavaType
All Implemented Interfaces:
org.apache.jdo.model.java.JavaElement, org.apache.jdo.model.java.JavaType

public class JDK5RuntimeJavaType
extends RuntimeJavaType

/** A reflection based JavaType implementation used at runtime in a J2SE5.0 environment. The implementation takes java.lang.Class and java.lang.reflect.Field instances to get Java related metadata about types and fields.

Author:
Michael Bouschen

Field Summary
 
Fields inherited from class org.apache.jdo.impl.model.java.reflection.ReflectionJavaType
declaredJavaFields, declaredJavaProperties, declaringJavaModel
 
Fields inherited from class org.apache.jdo.impl.model.java.BaseReflectionJavaType
clazz, superclass
 
Constructor Summary
JDK5RuntimeJavaType(java.lang.Class clazz, JDK5RuntimeJavaModel javaModel)
          Constructor.
 
Method Summary
protected  org.apache.jdo.model.java.JavaField newJavaFieldInstance(java.lang.reflect.Field field)
          Creates a new instance of the JavaField implementation class.
protected  org.apache.jdo.model.java.JavaField newJavaFieldInstance(java.lang.String name, org.apache.jdo.model.java.JavaType type)
          Creates a new instance of the JavaField implementation class.
protected  org.apache.jdo.model.java.JavaProperty newJavaPropertyInstance(java.lang.String name, org.apache.jdo.model.java.JavaMethod getter, org.apache.jdo.model.java.JavaMethod setter, org.apache.jdo.model.java.JavaType type)
          Creates a new instance of the JavaProperty implementation class.
 
Methods inherited from class org.apache.jdo.impl.model.java.runtime.RuntimeJavaType
createJavaField
 
Methods inherited from class org.apache.jdo.impl.model.java.reflection.ReflectionJavaType
createJavaMethod, createJavaProperty, getArrayComponentType, getDeclaredJavaField, getDeclaredJavaFields, getDeclaredJavaProperties, getDeclaredJavaProperty, getJavaField, getJavaProperty, getJavaTypeForClass, getJDOClass, getSuperclass, introspectClass, isArray, isPersistenceCapable, newJavaMethodInstance
 
Methods inherited from class org.apache.jdo.impl.model.java.BaseReflectionJavaType
getJavaClass, getModifiers, getName, getUnderlyingObject, isCompatibleWith, isInterface
 
Methods inherited from class org.apache.jdo.impl.model.java.AbstractJavaType
equals, hashCode, isFloatingPoint, isIntegral, isJDOSupportedCollection, isJDOSupportedMap, isOrderable, isPrimitive, isTrackable, isValue, isWrapperClass, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JDK5RuntimeJavaType

public JDK5RuntimeJavaType(java.lang.Class clazz,
                           JDK5RuntimeJavaModel javaModel)
Constructor.

Method Detail

newJavaFieldInstance

protected org.apache.jdo.model.java.JavaField newJavaFieldInstance(java.lang.String name,
                                                                   org.apache.jdo.model.java.JavaType type)
Creates a new instance of the JavaField implementation class.

This implementation returns a JDK5RuntimeJavaField instance.

Overrides:
newJavaFieldInstance in class org.apache.jdo.impl.model.java.reflection.ReflectionJavaType
Returns:
a new JavaField instance.

newJavaFieldInstance

protected org.apache.jdo.model.java.JavaField newJavaFieldInstance(java.lang.reflect.Field field)
Creates a new instance of the JavaField implementation class.

This implementation returns a ReflectionJavaField instance.

Overrides:
newJavaFieldInstance in class org.apache.jdo.impl.model.java.reflection.ReflectionJavaType
Returns:
a new JavaField instance.

newJavaPropertyInstance

protected org.apache.jdo.model.java.JavaProperty newJavaPropertyInstance(java.lang.String name,
                                                                         org.apache.jdo.model.java.JavaMethod getter,
                                                                         org.apache.jdo.model.java.JavaMethod setter,
                                                                         org.apache.jdo.model.java.JavaType type)
Creates a new instance of the JavaProperty implementation class.

This implementation returns a JavaPropertyImpl instance.

Overrides:
newJavaPropertyInstance in class org.apache.jdo.impl.model.java.reflection.ReflectionJavaType
Returns:
a new JavaProperty instance.


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.