Package org.apache.wicket.proxy
Class LazyInitProxyFactory.AbstractCGLibInterceptor
- java.lang.Object
-
- org.apache.wicket.proxy.LazyInitProxyFactory.AbstractCGLibInterceptor
-
- All Implemented Interfaces:
java.io.Serializable,net.sf.cglib.proxy.Callback,net.sf.cglib.proxy.MethodInterceptor,ILazyInitProxy,LazyInitProxyFactory.IWriteReplace,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
LazyInitProxyFactory.CGLibInterceptor,ObjenesisCGLibInterceptor
- Enclosing class:
- LazyInitProxyFactory
public abstract static class LazyInitProxyFactory.AbstractCGLibInterceptor extends java.lang.Object implements net.sf.cglib.proxy.MethodInterceptor, ILazyInitProxy, java.io.Serializable, LazyInitProxyFactory.IWriteReplace
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 IProxyTargetLocatorlocatorprotected java.lang.StringtypeName
-
Constructor Summary
Constructors Constructor Description AbstractCGLibInterceptor(java.lang.Class<?> type, IProxyTargetLocator locator)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IProxyTargetLocatorgetObjectLocator()java.lang.Objectintercept(java.lang.Object object, java.lang.reflect.Method method, java.lang.Object[] args, net.sf.cglib.proxy.MethodProxy proxy)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.proxy.LazyInitProxyFactory.IWriteReplace
writeReplace
-
-
-
-
Field Detail
-
locator
protected final IProxyTargetLocator locator
-
typeName
protected final java.lang.String typeName
-
-
Constructor Detail
-
AbstractCGLibInterceptor
public AbstractCGLibInterceptor(java.lang.Class<?> type, IProxyTargetLocator locator)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 java.lang.Object intercept(java.lang.Object object, java.lang.reflect.Method method, java.lang.Object[] args, net.sf.cglib.proxy.MethodProxy proxy) throws java.lang.Throwable- Specified by:
interceptin interfacenet.sf.cglib.proxy.MethodInterceptor- Throws:
java.lang.Throwable- See Also:
MethodInterceptor.intercept(java.lang.Object, java.lang.reflect.Method, java.lang.Object[], net.sf.cglib.proxy.MethodProxy)
-
getObjectLocator
public IProxyTargetLocator getObjectLocator()
- Specified by:
getObjectLocatorin interfaceILazyInitProxy- Returns:
- object locator the proxy carries
- See Also:
ILazyInitProxy.getObjectLocator()
-
-