Interface ImplementationCreator

All Known Implementing Classes:
ImplementationCreatorImpl

public interface ImplementationCreator
Create instances of persistable objects. Instantiation of interfaces or abstract classes is impossible, and for this reason concrete classes are generated and and enhanced at runtime by the ImplementationCreator. The generated classes are loaded/defined by an internal ClassLoader to the ImplementationCreator. The internal ClassLoader delegates to the ClassLoaderResolver (loader) the load of user classes.
  • Method Summary

    Modifier and Type
    Method
    Description
    Accessor for the ClassLoader loading classes created at runtime
    <T> T
    Constructs an implementation for an interface and instantiates it
  • Method Details

    • newInstance

      <T> T newInstance(Class<T> pc, ClassLoaderResolver loader)
      Constructs an implementation for an interface and instantiates it
      Type Parameters:
      T - Type of persistable object
      Parameters:
      pc - The class of the interface or abstract class, or concrete class defined in MetaData
      loader - The ClassLoaderResolver for the interface
      Returns:
      The instance implementing the interface
    • getClassLoader

      ClassLoader getClassLoader()
      Accessor for the ClassLoader loading classes created at runtime
      Returns:
      The ClassLoader