Class ProxyClassLoadingDelegate
- java.lang.Object
-
- org.hotswap.agent.plugin.owb.command.ProxyClassLoadingDelegate
-
public class ProxyClassLoadingDelegate extends Object
The OWB proxyFactory has its class loading tasks delegated to this class, which can then have some magic applied to make OWB think that the class has not been loaded yet.- Author:
- Vladimir Dvorak
-
-
Constructor Summary
Constructors Constructor Description ProxyClassLoadingDelegate()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbeginProxyRegeneration()static Class<?>defineAndLoadClass(org.apache.webbeans.proxy.AbstractProxyFactory proxyFactory, ClassLoader classLoader, String proxyName, byte[] proxyBytes)static Class<?>defineAndLoadClassWithUnsafe(Object unsafe, ClassLoader classLoader, String proxyName, byte[] proxyBytes)static Class<?>defineAndLoadClassWithUnsafe(Object unsafe, ClassLoader classLoader, String proxyName, byte[] proxyBytes, Class<?> classToProxy)static voidendProxyRegeneration()static Class<?>forName(String name, boolean initialize, ClassLoader loader)static voidsetGeneratingProxyName(String generatingProxyName)
-
-
-
Method Detail
-
setGeneratingProxyName
public static void setGeneratingProxyName(String generatingProxyName)
-
beginProxyRegeneration
public static final void beginProxyRegeneration()
-
endProxyRegeneration
public static final void endProxyRegeneration()
-
forName
public static Class<?> forName(String name, boolean initialize, ClassLoader loader) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
defineAndLoadClass
public static Class<?> defineAndLoadClass(org.apache.webbeans.proxy.AbstractProxyFactory proxyFactory, ClassLoader classLoader, String proxyName, byte[] proxyBytes)
-
defineAndLoadClassWithUnsafe
public static Class<?> defineAndLoadClassWithUnsafe(Object unsafe, ClassLoader classLoader, String proxyName, byte[] proxyBytes)
-
defineAndLoadClassWithUnsafe
public static Class<?> defineAndLoadClassWithUnsafe(Object unsafe, ClassLoader classLoader, String proxyName, byte[] proxyBytes, Class<?> classToProxy)
-
-