db4o 6.1

com.db4o.reflect.jdk
Class JdkReflector

java.lang.Object
  extended by com.db4o.reflect.jdk.JdkReflector
All Implemented Interfaces:
Reflector

public class JdkReflector
extends java.lang.Object
implements Reflector


Constructor Summary
JdkReflector(java.lang.ClassLoader classLoader)
           
JdkReflector(JdkLoader classLoader)
           
 
Method Summary
 ReflectArray array()
          returns an IArray object, the equivalent to java.lang.reflect.Array.
 boolean constructorCallsSupported()
          specifiy whether parameterized Constructors are supported.
 java.lang.Object deepClone(java.lang.Object obj)
           
 ReflectClass forClass(java.lang.Class clazz)
          returns an IClass for a Class
 ReflectClass forName(java.lang.String className)
          returns an IClass class reflector for a class name or null if no such class is found
 ReflectClass forObject(java.lang.Object a_object)
          returns an IClass for an object or null if the passed object is null.
 boolean isCollection(ReflectClass candidate)
           
 boolean methodCallsSupported()
           
 void setParent(Reflector reflector)
           
static ReflectClass[] toMeta(Reflector reflector, java.lang.Class[] clazz)
           
static java.lang.Class toNative(ReflectClass claxx)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdkReflector

public JdkReflector(java.lang.ClassLoader classLoader)

JdkReflector

public JdkReflector(JdkLoader classLoader)
Method Detail

array

public ReflectArray array()
Description copied from interface: Reflector
returns an IArray object, the equivalent to java.lang.reflect.Array.

Specified by:
array in interface Reflector

constructorCallsSupported

public boolean constructorCallsSupported()
Description copied from interface: Reflector
specifiy whether parameterized Constructors are supported.

The support of Constructors is optional. If Constructors are not supported, every persistent class needs a public default constructor with zero parameters.

Specified by:
constructorCallsSupported in interface Reflector

deepClone

public java.lang.Object deepClone(java.lang.Object obj)

forClass

public ReflectClass forClass(java.lang.Class clazz)
Description copied from interface: Reflector
returns an IClass for a Class

Specified by:
forClass in interface Reflector

forName

public ReflectClass forName(java.lang.String className)
Description copied from interface: Reflector
returns an IClass class reflector for a class name or null if no such class is found

Specified by:
forName in interface Reflector

forObject

public ReflectClass forObject(java.lang.Object a_object)
Description copied from interface: Reflector
returns an IClass for an object or null if the passed object is null.

Specified by:
forObject in interface Reflector

isCollection

public boolean isCollection(ReflectClass candidate)
Specified by:
isCollection in interface Reflector

methodCallsSupported

public boolean methodCallsSupported()

setParent

public void setParent(Reflector reflector)
Specified by:
setParent in interface Reflector

toMeta

public static ReflectClass[] toMeta(Reflector reflector,
                                    java.lang.Class[] clazz)

toNative

public static java.lang.Class toNative(ReflectClass claxx)

db4o 6.1