db4o 4.0

com.db4o.reflect
Interface IReflect


public interface IReflect

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.

See the code in com.db4o.samples.reflect for a reference implementation that uses java.lang.reflect.*.

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


Method Summary
 IArray array()
          returns an IArray object, the equivalent to java.lang.reflect.Array.
 boolean constructorCallsSupported()
          specifiy whether parameterized Constructors are supported.
 IClass forName(java.lang.String className)
          returns an IClass class reflector for a class name.
 boolean methodCallsSupported()
          specify whether method calls are supported.
 

Method Detail

array

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


constructorCallsSupported

public boolean constructorCallsSupported()
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.


forName

public IClass forName(java.lang.String className)
               throws java.lang.ClassNotFoundException
returns an IClass class reflector for a class name.

Throws:
java.lang.ClassNotFoundException

methodCallsSupported

public boolean methodCallsSupported()
specify whether method calls are supported.


db4o 4.0