Package org.jboss.weld.bean.proxy
Class InterceptedProxyFactory<T>
java.lang.Object
org.jboss.weld.bean.proxy.ProxyFactory<T>
org.jboss.weld.bean.proxy.InterceptedProxyFactory<T>
- Type Parameters:
T-
Generates proxies used to apply interceptors to custom bean instances and return values of producer methods.
- Author:
- Martin Kouba, Matej Novotny
- See Also:
-
Field Summary
FieldsFields inherited from class org.jboss.weld.bean.proxy.ProxyFactory
CONSTRUCTED_FLAG_NAME, DEFAULT_METHOD_RESOLVER, DEFAULT_PROXY_PACKAGE, INIT_METHOD_NAME, INVOKE_METHOD_NAME, LBEAN_IDENTIFIER, LJAVA_LANG_BYTE, LJAVA_LANG_CLASS, LJAVA_LANG_OBJECT, LJAVA_LANG_REFLECT_METHOD, LJAVA_LANG_STRING, LJAVA_LANG_THREAD_LOCAL, METHOD_HANDLER_FIELD_NAME, WELD_PROXY_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionInterceptedProxyFactory(String contextId, Class<?> proxiedBeanType, Set<? extends Type> typeClosure, Set<MethodSignature> enhancedMethodSignatures, Set<MethodSignature> interceptedMethodSignatures, String suffix) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterfacesFromTypeClosure(Set<? extends Type> typeClosure, Class<?> proxiedBeanType) protected voidaddMethodsFromClass(org.jboss.classfilewriter.ClassFile proxyClassType, org.jboss.classfilewriter.ClassMethod staticConstructor) protected StringReturns a suffix to append to the name of the proxy class.protected booleanisMethodAccepted(Method method, Class<?> proxySuperclass) Methods inherited from class org.jboss.weld.bean.proxy.ProxyFactory
addAdditionalInterfaces, addConstructedGuardToMethodBody, addConstructedGuardToMethodBody, addConstructors, addFields, addInterface, addMethods, addSerializationSupport, addSpecialMethods, create, createForwardingMethodBody, createInterceptorBody, createSpecialMethodBody, generateEqualsMethod, generateGetMethodHandlerBody, generateHashCodeMethod, generateSetMethodHandlerBody, getAdditionalInterfaces, getBaseProxyName, getBean, getBeanType, getContextId, getMethodHandlerField, getMethodHandlerType, getProxiedBeanType, getProxyClass, getProxySuperclass, instantiateProxy, invokeMethodHandler, isUsingProxyInstantiator, setBeanInstance, toClass
-
Field Details
-
PROXY_SUFFIX
- See Also:
-
-
Constructor Details
-
InterceptedProxyFactory
public InterceptedProxyFactory(String contextId, Class<?> proxiedBeanType, Set<? extends Type> typeClosure, Set<MethodSignature> enhancedMethodSignatures, Set<MethodSignature> interceptedMethodSignatures, String suffix)
-
-
Method Details
-
getProxyNameSuffix
Description copied from class:ProxyFactoryReturns a suffix to append to the name of the proxy class. The name already consists of <class-name>_$$_Weld, to which the suffix is added. This allows the creation of different types of proxies for the same class.- Overrides:
getProxyNameSuffixin classProxyFactory<T>- Returns:
- a name suffix
-
addMethodsFromClass
protected void addMethodsFromClass(org.jboss.classfilewriter.ClassFile proxyClassType, org.jboss.classfilewriter.ClassMethod staticConstructor) - Overrides:
addMethodsFromClassin classProxyFactory<T>
-
addInterfacesFromTypeClosure
- Overrides:
addInterfacesFromTypeClosurein classProxyFactory<T>
-
isMethodAccepted
- Overrides:
isMethodAcceptedin classProxyFactory<T>
-