Package io.jmix.dynmodel.impl
Class PreviewGeneratedClassStore
java.lang.Object
io.jmix.dynmodel.impl.PreviewGeneratedClassStore
- All Implemented Interfaces:
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
classManager
-
loadedClasses
-
-
Constructor Details
-
PreviewGeneratedClassStore
-
-
Method Details
-
loadGeneratedClass
Description copied from interface:GeneratedClassStoreLoads the given bytecode and returns the resulting class.- Specified by:
loadGeneratedClassin interfaceGeneratedClassStore
-
findClass
Description copied from interface:GeneratedClassStoreReturns the class with the given name, ornullwhen it is not known to this store.- Specified by:
findClassin interfaceGeneratedClassStore
-