The Mirror

The Mirror is the main class that allows for reflecting types.

Mirror mirror = Mirror.builder().build();

You can specify whether to enable/disable TypeDefinition caching via the Mirror.Builder#cache method. By default this is true.

Mirror mirror = Mirror.builder()
        .cache(false)
        .build();

If you would like to specify a class loader for proxies you can do so:

Mirror mirror = Mirror.builder()
        .classLoader(Object.class.getClassLoader())
        .build();

See here for more details.

Last updated