public class SubclassProxyFactory extends AbstractProxyFactory
FIELD_BEAN_PASSIVATION_ID, MAX_CLASSLOAD_TRIES, webBeansContext| Constructor and Description |
|---|
SubclassProxyFactory(WebBeansContext webBeansContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createConstructor(org.apache.xbean.asm4.ClassWriter cw,
String proxyClassFileName,
Class<?> classToProxy,
String classFileName)
Each of our interceptor/decorator proxies has exactly 1 constructor
which invokes the super ct + sets the delegation field.
|
<T> Class<T> |
createImplementedSubclass(ClassLoader classLoader,
Class<T> classToProxy) |
protected void |
createInstanceVariables(org.apache.xbean.asm4.ClassWriter cw,
Class<?> classToProxy,
String classFileName)
generate the bytecode for creating the instance variables of the class
|
protected void |
createSerialisation(org.apache.xbean.asm4.ClassWriter cw,
String proxyClassFileName,
Class<?> classToProxy,
String classFileName)
generate the bytecode for serialization.
|
<T> Class<T> |
createSubClass(ClassLoader classLoader,
Class<T> classToProxy) |
protected void |
delegateInterceptedMethods(ClassLoader classLoader,
org.apache.xbean.asm4.ClassWriter cw,
String proxyClassFileName,
Class<?> classToProxy,
Method[] interceptedMethods)
generate the bytecode for invoking all intercepted methods
|
protected void |
delegateNonInterceptedMethods(ClassLoader classLoader,
org.apache.xbean.asm4.ClassWriter cw,
String proxyClassFileName,
Class<?> classToProxy,
Method[] noninterceptedMethods)
generate the bytecode for invoking all non-intercepted methods
|
protected Class |
getMarkerInterface() |
createArrayDefinition, createProxyClass, fixPreservedPackages, generateReturn, getCastType, getPrimitiveMethod, getReturnInsn, getUnusedProxyClassName, getVarInsn, getWrapperType, pushIntOntoStack, pushMethodParameterArray, unproxyableMethod, unsafeNewInstancepublic SubclassProxyFactory(WebBeansContext webBeansContext)
protected Class getMarkerInterface()
getMarkerInterface in class AbstractProxyFactorypublic <T> Class<T> createImplementedSubclass(ClassLoader classLoader, Class<T> classToProxy)
public <T> Class<T> createSubClass(ClassLoader classLoader, Class<T> classToProxy) throws ProxyGenerationException
T - classLoader - to use for creating the class inclassToProxy - the class for which a subclass will get generatedProxyGenerationExceptionprotected void createConstructor(org.apache.xbean.asm4.ClassWriter cw,
String proxyClassFileName,
Class<?> classToProxy,
String classFileName)
throws ProxyGenerationException
AbstractProxyFactorycreateConstructor in class AbstractProxyFactoryProxyGenerationExceptionprotected void createInstanceVariables(org.apache.xbean.asm4.ClassWriter cw,
Class<?> classToProxy,
String classFileName)
AbstractProxyFactorycreateInstanceVariables in class AbstractProxyFactoryprotected void delegateInterceptedMethods(ClassLoader classLoader, org.apache.xbean.asm4.ClassWriter cw, String proxyClassFileName, Class<?> classToProxy, Method[] interceptedMethods) throws ProxyGenerationException
AbstractProxyFactorydelegateInterceptedMethods in class AbstractProxyFactoryProxyGenerationExceptionprotected void createSerialisation(org.apache.xbean.asm4.ClassWriter cw,
String proxyClassFileName,
Class<?> classToProxy,
String classFileName)
AbstractProxyFactorycreateSerialisation in class AbstractProxyFactoryprotected void delegateNonInterceptedMethods(ClassLoader classLoader, org.apache.xbean.asm4.ClassWriter cw, String proxyClassFileName, Class<?> classToProxy, Method[] noninterceptedMethods) throws ProxyGenerationException
AbstractProxyFactorydelegateNonInterceptedMethods in class AbstractProxyFactoryProxyGenerationExceptionCopyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.