Class ClassLoaderProxyService


  • public class ClassLoaderProxyService
    extends java.lang.Object
    Service to load classes dynamically at runtime. This class got forked from Apache OpenWebBeans
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> java.lang.Class<T> defineAndLoad​(java.lang.String name, byte[] bytecode, java.lang.Class<T> proxiedClass)  
      java.lang.ClassLoader getProxyClassLoader​(java.lang.Class<?> forClass)  
      <T> T newInstance​(java.lang.Class<? extends T> proxyClass)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClassLoaderProxyService

        public ClassLoaderProxyService​(Configuration config,
                                       java.lang.ClassLoader parentLoader)
      • ClassLoaderProxyService

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

      • getProxyClassLoader

        public java.lang.ClassLoader getProxyClassLoader​(java.lang.Class<?> forClass)
      • defineAndLoad

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

        public <T> T newInstance​(java.lang.Class<? extends T> proxyClass)