Interface GeneratedClassStore

All Known Implementing Classes:
ClassManagerGeneratedClassStore, PreviewGeneratedClassStore

public interface GeneratedClassStore
Loads and looks up the classes generated while building a metadata session from a dynamic model definition. A real apply stores them in the global ClassManager; a preview build keeps them in a throwaway class loader, so the running application is not affected.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Class<?>
    findClass(String className)
    Returns the class with the given name, or null when it is not known to this store.
    loadGeneratedClass(String className, byte[] bytes)
    Loads the given bytecode and returns the resulting class.
  • Method Details

    • loadGeneratedClass

      Class<?> loadGeneratedClass(String className, byte[] bytes)
      Loads the given bytecode and returns the resulting class.
    • findClass

      @Nullable Class<?> findClass(String className)
      Returns the class with the given name, or null when it is not known to this store.