|
|
@ -11,8 +11,8 @@ import java.lang.reflect.Method; |
|
|
|
import java.util.Locale; |
|
|
|
import java.util.Locale; |
|
|
|
import java.util.Set; |
|
|
|
import java.util.Set; |
|
|
|
|
|
|
|
|
|
|
|
import javassist.util.proxy.MethodFilter; |
|
|
|
import com.fr.third.javassist.util.proxy.MethodFilter; |
|
|
|
import javassist.util.proxy.Proxy; |
|
|
|
import com.fr.third.javassist.util.proxy.Proxy; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.third.org.hibernate.HibernateException; |
|
|
|
import com.fr.third.org.hibernate.HibernateException; |
|
|
|
import com.fr.third.org.hibernate.engine.spi.SessionImplementor; |
|
|
|
import com.fr.third.org.hibernate.engine.spi.SessionImplementor; |
|
|
@ -80,17 +80,17 @@ public class JavassistProxyFactory implements ProxyFactory, Serializable { |
|
|
|
return interfaces.toArray( new Class[interfaces.size()] ); |
|
|
|
return interfaces.toArray( new Class[interfaces.size()] ); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private javassist.util.proxy.ProxyFactory buildJavassistProxyFactory() { |
|
|
|
private com.fr.third.javassist.util.proxy.ProxyFactory buildJavassistProxyFactory() { |
|
|
|
return buildJavassistProxyFactory( |
|
|
|
return buildJavassistProxyFactory( |
|
|
|
persistentClass, |
|
|
|
persistentClass, |
|
|
|
interfaces |
|
|
|
interfaces |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static javassist.util.proxy.ProxyFactory buildJavassistProxyFactory( |
|
|
|
public static com.fr.third.javassist.util.proxy.ProxyFactory buildJavassistProxyFactory( |
|
|
|
final Class persistentClass, |
|
|
|
final Class persistentClass, |
|
|
|
final Class[] interfaces) { |
|
|
|
final Class[] interfaces) { |
|
|
|
javassist.util.proxy.ProxyFactory factory = new javassist.util.proxy.ProxyFactory() { |
|
|
|
com.fr.third.javassist.util.proxy.ProxyFactory factory = new com.fr.third.javassist.util.proxy.ProxyFactory() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected ClassLoader getClassLoader() { |
|
|
|
protected ClassLoader getClassLoader() { |
|
|
|
return persistentClass.getClassLoader(); |
|
|
|
return persistentClass.getClassLoader(); |
|
|
@ -144,7 +144,7 @@ public class JavassistProxyFactory implements ProxyFactory, Serializable { |
|
|
|
ReflectHelper.overridesEquals( serializableProxy.getPersistentClass() ) |
|
|
|
ReflectHelper.overridesEquals( serializableProxy.getPersistentClass() ) |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
final javassist.util.proxy.ProxyFactory factory = buildJavassistProxyFactory( |
|
|
|
final com.fr.third.javassist.util.proxy.ProxyFactory factory = buildJavassistProxyFactory( |
|
|
|
serializableProxy.getPersistentClass(), |
|
|
|
serializableProxy.getPersistentClass(), |
|
|
|
serializableProxy.getInterfaces() |
|
|
|
serializableProxy.getInterfaces() |
|
|
|
); |
|
|
|
); |
|
|
|