db4o 7.4

com.db4o.reflect.jdk
Class JdkReflector

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

public class JdkReflector
extends java.lang.Object
implements Reflector

db4o wrapper for JDK reflector functionality

See Also:
ExtObjectContainer.reflector(), GenericReflector

Constructor Summary
JdkReflector(java.lang.ClassLoader classLoader)
          Constructor
JdkReflector(com.db4o.reflect.jdk.JdkLoader classLoader)
          Constructor
 
Method Summary
 ReflectArray array()
          ReflectArray factory
 ReflectorConfiguration configuration()
           
 void configuration(ReflectorConfiguration config)
           
 java.lang.Object deepClone(java.lang.Object obj)
          Creates a copy of the object
 ReflectClass forClass(java.lang.Class clazz)
          Returns ReflectClass for the specified class
 ReflectClass forName(java.lang.String className)
          Returns ReflectClass for the specified class name
 ReflectClass forObject(java.lang.Object a_object)
          Returns ReflectClass for the specified class object
 boolean isCollection(ReflectClass candidate)
          Method stub.
 boolean methodCallsSupported()
          Method stub.
 void setParent(Reflector reflector)
          Sets parent reflector
static ReflectClass[] toMeta(Reflector reflector, java.lang.Class[] clazz)
          Creates ReflectClass[] array from the Class[] array using the reflector specified
static java.lang.Class toNative(ReflectClass claxx)
          Translates a ReflectClass into a native Class
 
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)
Constructor

Parameters:
classLoader - class loader

JdkReflector

public JdkReflector(com.db4o.reflect.jdk.JdkLoader classLoader)
Constructor

Parameters:
classLoader - class loader
Method Detail

array

public ReflectArray array()
ReflectArray factory

Specified by:
array in interface Reflector
Returns:
ReflectArray instance

deepClone

public java.lang.Object deepClone(java.lang.Object obj)
Creates a copy of the object

Specified by:
deepClone in interface com.db4o.foundation.DeepClone
Parameters:
obj - object to copy
Returns:
object copy

forClass

public ReflectClass forClass(java.lang.Class clazz)
Returns ReflectClass for the specified class

Specified by:
forClass in interface Reflector
Parameters:
clazz - class
Returns:
ReflectClass for the specified class

forName

public ReflectClass forName(java.lang.String className)
Returns ReflectClass for the specified class name

Specified by:
forName in interface Reflector
Parameters:
className - class name
Returns:
ReflectClass for the specified class name

forObject

public ReflectClass forObject(java.lang.Object a_object)
Returns ReflectClass for the specified class object

Specified by:
forObject in interface Reflector
Parameters:
a_object - class object
Returns:
ReflectClass for the specified class object

isCollection

public boolean isCollection(ReflectClass candidate)
Method stub. Returns false.

Specified by:
isCollection in interface Reflector

methodCallsSupported

public boolean methodCallsSupported()
Method stub. Returns false.


setParent

public void setParent(Reflector reflector)
Sets parent reflector

Specified by:
setParent in interface Reflector
Parameters:
reflector - parent reflector

toMeta

public static ReflectClass[] toMeta(Reflector reflector,
                                    java.lang.Class[] clazz)
Creates ReflectClass[] array from the Class[] array using the reflector specified

Parameters:
reflector - reflector to use
clazz - class
Returns:
ReflectClass[] array

toNative

public static java.lang.Class toNative(ReflectClass claxx)
Translates a ReflectClass into a native Class

Parameters:
claxx - ReflectClass to translate
Returns:
Class

configuration

public void configuration(ReflectorConfiguration config)
Specified by:
configuration in interface Reflector

configuration

public ReflectorConfiguration configuration()

db4o 7.4

Copyright 2007 db4objects Inc. All rights reserved.