Package org.apache.wicket.proxy
Class LazyInitProxyFactory.AbstractCGLibInterceptor
- java.lang.Object
-
- org.apache.wicket.proxy.LazyInitProxyFactory.AbstractCGLibInterceptor
-
- All Implemented Interfaces:
Serializable
,net.sf.cglib.proxy.Callback
,net.sf.cglib.proxy.MethodInterceptor
,ILazyInitProxy
,LazyInitProxyFactory.IWriteReplace
,IClusterable
- Direct Known Subclasses:
LazyInitProxyFactory.CGLibInterceptor
,ObjenesisCGLibInterceptor
- Enclosing class:
- LazyInitProxyFactory
@Deprecated(forRemoval=true) public abstract static class LazyInitProxyFactory.AbstractCGLibInterceptor extends Object implements net.sf.cglib.proxy.MethodInterceptor, ILazyInitProxy, Serializable, LazyInitProxyFactory.IWriteReplace
Deprecated, for removal: This API element is subject to removal in a future version.Method interceptor for proxies representing concrete object not backed by an interface. These proxies are represented by cglib proxies.- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected IProxyTargetLocator
locator
Deprecated, for removal: This API element is subject to removal in a future version.protected String
typeName
Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Summary
Constructors Constructor Description AbstractCGLibInterceptor(Class<?> type, IProxyTargetLocator locator)
Deprecated, for removal: This API element is subject to removal in a future version.Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description IProxyTargetLocator
getObjectLocator()
Deprecated, for removal: This API element is subject to removal in a future version.Object
intercept(Object object, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy proxy)
Deprecated, for removal: This API element is subject to removal in a future version.Object
writeReplace()
Deprecated, for removal: This API element is subject to removal in a future version.write replace method as defined by Serializable
-
-
-
Field Detail
-
locator
protected final IProxyTargetLocator locator
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Detail
-
AbstractCGLibInterceptor
public AbstractCGLibInterceptor(Class<?> type, IProxyTargetLocator locator)
Deprecated, for removal: This API element is subject to removal in a future version.Constructor- Parameters:
type
- class of the object this proxy was created forlocator
- object locator used to locate the object this proxy represents
-
-
Method Detail
-
intercept
public Object intercept(Object object, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy proxy) throws Throwable
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
intercept
in interfacenet.sf.cglib.proxy.MethodInterceptor
- Throws:
Throwable
- See Also:
MethodInterceptor.intercept(java.lang.Object, java.lang.reflect.Method, java.lang.Object[], net.sf.cglib.proxy.MethodProxy)
-
getObjectLocator
public IProxyTargetLocator getObjectLocator()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getObjectLocator
in interfaceILazyInitProxy
- Returns:
- object locator the proxy carries
- See Also:
ILazyInitProxy.getObjectLocator()
-
writeReplace
public Object writeReplace() throws ObjectStreamException
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:LazyInitProxyFactory.IWriteReplace
write replace method as defined by Serializable- Specified by:
writeReplace
in interfaceLazyInitProxyFactory.IWriteReplace
- Returns:
- object that will replace this object in serialized state
- Throws:
ObjectStreamException
-
-