org.castor.persist.proxy

Class SingleProxy

Implemented Interfaces:
MethodInterceptor, Serializable

public final class SingleProxy
extends java.lang.Object
implements MethodInterceptor, Serializable

Method Summary

static Object
getProxy(TransactionContext tx, ClassMolder classMolder, Identity identity, Object object, AccessMode accessMode)
Factory method to create SingleProxy instance.
Object
intercept(Object obj, Method method, Object[] args, MethodProxy proxy)

Method Details

getProxy

public static Object getProxy(TransactionContext tx,
                              ClassMolder classMolder,
                              Identity identity,
                              Object object,
                              AccessMode accessMode)
            throws ObjectNotFoundException
Factory method to create SingleProxy instance.
Parameters:
tx - Actual TransactionContext.
classMolder - Associated ClassMolder.
identity - Identity object.
object - Object to be lazy-loaded.
accessMode - Access mode identifier.
Returns:
A SingleProxy instance.

intercept

public Object intercept(Object obj,
                        Method method,
                        Object[] args,
                        MethodProxy proxy)
            throws Throwable
See Also:
#intercept(java.lang.Object, java.lang.reflect.Method, java.lang.Object[], net.sf.cglib.proxy.MethodProxy)

Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com