org.castor.persist.proxy
Class SingleProxy
java.lang.Object
org.castor.persist.proxy.SingleProxy
- All Implemented Interfaces:
- java.io.Serializable, net.sf.cglib.proxy.Callback, net.sf.cglib.proxy.MethodInterceptor
public class SingleProxy
- extends java.lang.Object
- implements net.sf.cglib.proxy.MethodInterceptor, java.io.Serializable
- See Also:
- Serialized Form
Method Summary |
static java.lang.Object |
getProxy(TransactionContext tx,
LockEngine engine,
ClassMolder classMolder,
java.lang.Object identity,
java.lang.Object object,
AccessMode accessMode)
Factory method to create SingleProxy instance. |
java.lang.Object |
intercept(java.lang.Object obj,
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 |
_tx
TransactionContext _tx
_engine
LockEngine _engine
_classMolder
ClassMolder _classMolder
_clazz
java.lang.Class _clazz
_identity
java.lang.Object _identity
_object
java.lang.Object _object
_accessMode
AccessMode _accessMode
_hasMaterialized
boolean _hasMaterialized
getProxy
public static java.lang.Object getProxy(TransactionContext tx,
LockEngine engine,
ClassMolder classMolder,
java.lang.Object identity,
java.lang.Object object,
AccessMode accessMode)
throws ObjectNotFoundException
- Factory method to create SingleProxy instance.
- Parameters:
tx
- Actual TransactionContext.engine
- Associated LockEngineclassMolder
- Associated ClassMolder.identity
- Identity object.object
- Object to be lazy-loaded.accessMode
- Access mode identifier.
- Returns:
- A SingleProxy instance.
- Throws:
ObjectNotFoundException
intercept
public java.lang.Object intercept(java.lang.Object obj,
java.lang.reflect.Method method,
java.lang.Object[] args,
net.sf.cglib.proxy.MethodProxy proxy)
throws java.lang.Throwable
- Specified by:
intercept
in interface net.sf.cglib.proxy.MethodInterceptor
- Throws:
java.lang.Throwable
- See Also:
#intercept(java.lang.Object,
java.lang.reflect.Method, java.lang.Object[],
net.sf.cglib.proxy.MethodProxy)
Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com