You are here: Implementation Strategies > Db4o Reflection API

Db4o Reflection API

Reflection API gives your code access to internal information for classes loaded into the JVM. It allows you to work with classes defined in runtime and not in code.

Reflection works with metadata - data that describes other data. In the case of reflection metadata is the description of classes and objects within the JVM, including their fields, methods and constructors. It allows the programmer to select target classes in runtime, create new objects, call their methods and operate with the fields.

These features make reflection especially useful for creating libraries that work with objects in very general ways. For example, reflection is often used in frameworks that persist objects to databases, XML, or other external formats.

More Reading: