Class ClassLoaderProxyService

java.lang.Object
org.apache.openjpa.util.ClassLoaderProxyService

public class ClassLoaderProxyService extends Object
Service to load classes dynamically at runtime. This class got forked from Apache OpenWebBeans
  • Constructor Details

    • ClassLoaderProxyService

      public ClassLoaderProxyService(Configuration config, ClassLoader parentLoader)
    • ClassLoaderProxyService

      protected ClassLoaderProxyService(org.apache.openjpa.util.ClassLoaderProxyService.ProxiesClassLoader loader)
  • Method Details

    • getProxyClassLoader

      public ClassLoader getProxyClassLoader(Class<?> forClass)
    • defineAndLoad

      public <T> Class<T> defineAndLoad(String name, byte[] bytecode, Class<T> proxiedClass)
    • newInstance

      public <T> T newInstance(Class<? extends T> proxyClass)