Class EnhancerLoader

All Implemented Interfaces:
Closeable, AutoCloseable

public class EnhancerLoader extends URLClassLoader
A ClassLoader for the ORM (DataNucleus) enhancer.

This ClassLoader allows us to isolate the enhancer from our dependencies as well as prevent log4j from loading (which causes the enhancer to automatically use log4j for logging).

  • Constructor Details

    • EnhancerLoader

      @Deprecated public EnhancerLoader(Set<URL> enhanceTargets)
      Creates a new EnhancerLoader capable of running the Enhancer.
    • EnhancerLoader

      public EnhancerLoader(Set<URL> enhanceTargets, String datanucleusVersion)
      Creates a new EnhancerLoader capable of running the Enhancer.
  • Method Details