Class PreviewGeneratedClassStore

java.lang.Object
io.jmix.dynmodel.impl.PreviewGeneratedClassStore
All Implemented Interfaces:
GeneratedClassStore

public class PreviewGeneratedClassStore extends Object implements GeneratedClassStore
The GeneratedClassStore used by a preview metadata session build. Classes are defined in throwaway class loaders owned by this store, so nothing is added to, replaced in, or removed from the global ClassManager, and everything is garbage-collected together with the preview session. Each class gets its own loader, so a duplicate name in an invalid definition replaces the earlier class instead of failing with a LinkageError. Lookups consult the throwaway classes first and fall back to the ClassManager for classes of the applied model.