Package org.apache.openjpa.util
Class ClassLoaderProxyService
- java.lang.Object
-
- org.apache.openjpa.util.ClassLoaderProxyService
-
public class ClassLoaderProxyService extends java.lang.Object
Service to load classes dynamically at runtime. This class got forked from Apache OpenWebBeans
-
-
Constructor Summary
Constructors Modifier Constructor Description ClassLoaderProxyService(Configuration config, java.lang.ClassLoader parentLoader)
protected
ClassLoaderProxyService(org.apache.openjpa.util.ClassLoaderProxyService.ProxiesClassLoader loader)
-
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)
-
-
-
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)
-
-