Deprecated
Per HHH-5451 support for cglib as a bytecode provider has been deprecated.
ProxyFactory instances.
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Class | |
| private static final CallbackFilter |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public BasicProxyFactory | buildBasicProxyFactory(Class<T>
The abstract super class (or null if none). superClass, Class<T>[] Interfaces to be proxied (or null if none). interfaces)Implements org. |
| public ProxyFactory | Returns: a new CGLIB-based proxy factory.Implements org. |
| CALLBACK_TYPES | back to summary |
|---|---|
| private static final Class<T>[] CALLBACK_TYPES | |
| FINALIZE_FILTER | back to summary |
|---|---|
| private static final CallbackFilter FINALIZE_FILTER | |
| ProxyFactoryFactoryImpl | back to summary |
|---|---|
| public ProxyFactoryFactoryImpl() | |
| buildBasicProxyFactory | back to summary |
|---|---|
| public BasicProxyFactory buildBasicProxyFactory(Class<T> superClass, Class<T>[] interfaces) Implements org. Doc from org. Build a proxy factory for basic proxy concerns. The return should be capable of properly handling newInstance() calls. Should build basic proxies essentially equivalent to JDK proxies in terms of capabilities, but should be able to deal with abstract super classes in addition to proxy interfaces. Must pass in either superClass or interfaces (or both).
| |
| buildProxyFactory | back to summary |
|---|---|
| public ProxyFactory buildProxyFactory() Implements org. Builds a CGLIB-based proxy factory.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object |
| factory | back to summary |
|---|---|
| private final Factory factory | |
| proxyClass | back to summary |
|---|---|
| private final Class<T> proxyClass | |
| BasicProxyFactoryImpl | back to summary |
|---|---|
| public BasicProxyFactoryImpl(Class<T> superClass, Class<T>[] interfaces) | |
| getProxy | back to summary |
|---|---|
| public Object getProxy() Implements org. Doc from org. Get a proxy reference.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | intercept(Object
"this", the enhanced object obj, Method intercepted Method method, Object[] argument array; primitive types are wrapped args, MethodProxy used to invoke super (non-intercepted method); may be called
as many times as needed proxy)Implements net. |
| data | back to summary |
|---|---|
| private HashMap<K, V> data | |
| proxiedClassName | back to summary |
|---|---|
| private final String proxiedClassName | |
| PassThroughInterceptor | back to summary |
|---|---|
| public PassThroughInterceptor(String proxiedClassName) | |
| intercept | back to summary |
|---|---|
| public Object intercept(Object obj, Method method, Object[] args, MethodProxy proxy) throws Throwable Implements net. Doc from net. All generated proxied methods call this method instead of the original method. The original method may either be invoked by normal reflection using the Method object, or by using the MethodProxy (faster).
| |