db4o 7.4

com.db4o.reflect
Interface Reflector

All Superinterfaces:
com.db4o.foundation.DeepClone
All Known Implementing Classes:
GenericReflector, JdkReflector, SelfReflector

public interface Reflector
extends com.db4o.foundation.DeepClone

root of the reflection implementation API.

The open reflection interface is supplied to allow to implement reflection functionality on JDKs that do not come with the java.lang.reflect.* package.

Use Db4o.configure().reflectWith(IReflect reflector) to register the use of your implementation before opening database files.


Method Summary
 ReflectArray array()
          returns an ReflectArray object, the equivalent to java.lang.reflect.Array.
 void configuration(ReflectorConfiguration config)
           
 ReflectClass forClass(java.lang.Class clazz)
          returns an ReflectClass for a Class
 ReflectClass forName(java.lang.String className)
          returns an ReflectClass class reflector for a class name or null if no such class is found
 ReflectClass forObject(java.lang.Object obj)
          returns an ReflectClass for an object or null if the passed object is null.
 boolean isCollection(ReflectClass clazz)
           
 void setParent(Reflector reflector)
           
 
Methods inherited from interface com.db4o.foundation.DeepClone
deepClone
 

Method Detail

configuration

void configuration(ReflectorConfiguration config)

array

ReflectArray array()
returns an ReflectArray object, the equivalent to java.lang.reflect.Array.


forClass

ReflectClass forClass(java.lang.Class clazz)
returns an ReflectClass for a Class


forName

ReflectClass forName(java.lang.String className)
returns an ReflectClass class reflector for a class name or null if no such class is found


forObject

ReflectClass forObject(java.lang.Object obj)
returns an ReflectClass for an object or null if the passed object is null.


isCollection

boolean isCollection(ReflectClass clazz)

setParent

void setParent(Reflector reflector)

db4o 7.4

Copyright 2007 db4objects Inc. All rights reserved.