Package com.db4o.reflect
Interface Reflector
-
- All Superinterfaces:
DeepClone
- All Known Implementing Classes:
GenericReflector
,JdkReflector
public interface Reflector extends 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.
Useconfiguration.commmon().reflectWith(IReflect reflector)
to register the use of your implementation before opening database files.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 ClassReflectClass
forName(java.lang.String className)
returns an ReflectClass class reflector for a class name or null if no such class is foundReflectClass
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)
-
-
-
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)
-
-