Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/proxy
In directory sc8-pr-cvs1:/tmp/cvs-serv27994/sf/hibernate/proxy
Modified Files:
CGLIBLazyInitializer.java HibernateProxyHelper.java
Log Message:
integrated latest cglib + reflection optimizer
Index: CGLIBLazyInitializer.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/proxy/CGLIBLazyInitializer.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** CGLIBLazyInitializer.java 5 Jan 2003 02:11:22 -0000 1.3
--- CGLIBLazyInitializer.java 15 Feb 2003 08:00:51 -0000 1.4
***************
*** 10,19 ****
import net.sf.hibernate.engine.SessionImplementor;
! import net.sf.cglib.proxy.Enhancer;
! import net.sf.cglib.proxy.MethodInterceptor;
/**
! *
*/
public final class CGLIBLazyInitializer extends LazyInitializer implements MethodInterceptor {
--- 10,20 ----
import net.sf.hibernate.engine.SessionImplementor;
! import net.sf.cglib.Enhancer;
! import net.sf.cglib.MethodInterceptor;
! import net.sf.cglib.MethodProxy;
/**
! * A <tt>LazyInitializer</tt> implemented using the CGLIB bytecode generation library
*/
public final class CGLIBLazyInitializer extends LazyInitializer implements MethodInterceptor {
***************
*** 41,50 ****
}
! public boolean invokeSuper(Object obj, Method method, Object args[]) throws Throwable {
! return false;
! }
!
!
! public Object afterReturn(Object obj, Method method, Object args[], boolean invokedSuper, Object retValFromSuper, Throwable e) throws Throwable{
return invoke(method, args);
}
--- 42,46 ----
}
! public Object intercept(Object obj, Method method, Object args[], MethodProxy proxy) throws Throwable{
return invoke(method, args);
}
Index: HibernateProxyHelper.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/proxy/HibernateProxyHelper.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** HibernateProxyHelper.java 14 Jan 2003 13:42:17 -0000 1.4
--- HibernateProxyHelper.java 15 Feb 2003 08:00:52 -0000 1.5
***************
*** 2,6 ****
package net.sf.hibernate.proxy;
! import net.sf.cglib.proxy.Enhancer;
import net.sf.hibernate.HibernateException;
--- 2,6 ----
package net.sf.hibernate.proxy;
! import net.sf.cglib.Enhancer;
import net.sf.hibernate.HibernateException;
|