public class DynamicSubclass
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DynamicSubclass.MoveAnnotationsVisitor |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IMPL_SUFFIX |
Constructor and Description |
---|
DynamicSubclass() |
Modifier and Type | Method and Description |
---|---|
static void |
copyMethodAnnotations(java.lang.Class<?> classToProxy,
java.util.Map<java.lang.String,MethodVisitor> visitors) |
static java.lang.Class |
createSubclass(java.lang.Class<?> abstractClass,
java.lang.ClassLoader cl) |
static java.lang.Class |
createSubclass(java.lang.Class<?> abstractClass,
java.lang.ClassLoader cl,
boolean proxyNonAbstractMethods) |
static boolean |
isDynamic(java.lang.Class beanClass) |
static byte[] |
readClassFile(java.lang.Class clazz) |
static byte[] |
readClassFile(java.lang.ClassLoader classLoader,
java.lang.Class clazz) |
static void |
setHandler(java.lang.Object instance,
java.lang.reflect.InvocationHandler handler) |
static int |
size(Type type) |
public static final java.lang.String IMPL_SUFFIX
public static boolean isDynamic(java.lang.Class beanClass)
public static java.lang.Class createSubclass(java.lang.Class<?> abstractClass, java.lang.ClassLoader cl)
public static java.lang.Class createSubclass(java.lang.Class<?> abstractClass, java.lang.ClassLoader cl, boolean proxyNonAbstractMethods)
public static void setHandler(java.lang.Object instance, java.lang.reflect.InvocationHandler handler)
public static int size(Type type)
public static byte[] readClassFile(java.lang.Class clazz) throws java.io.IOException
java.io.IOException
public static byte[] readClassFile(java.lang.ClassLoader classLoader, java.lang.Class clazz) throws java.io.IOException
java.io.IOException
public static void copyMethodAnnotations(java.lang.Class<?> classToProxy, java.util.Map<java.lang.String,MethodVisitor> visitors) throws ProxyGenerationException
ProxyGenerationException