org.castor.persist.proxy

Class SingleProxy

public final class SingleProxy extends Object implements MethodInterceptor, Serializable

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

Method Detail

getProxy

public static Object getProxy(TransactionContext tx, ClassMolder classMolder, Identity identity, Object object, AccessMode accessMode)
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.

Throws: ObjectNotFoundException

intercept

public Object intercept(Object obj, Method method, Object[] args, MethodProxy proxy)
{@inheritDoc }

See Also: net.sf.cglib.proxy.MethodInterceptor #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