Groovy Documentation

org.codehaus.groovy.grails.orm.hibernate.proxy
[Java] Class GroovyAwareJavassistProxyFactory

java.lang.Object
  org.codehaus.groovy.grails.orm.hibernate.proxy.GroovyAwareJavassistProxyFactory
All Implemented Interfaces:
org.hibernate.proxy.ProxyFactory, java.io.Serializable

public class GroovyAwareJavassistProxyFactory
extends java.lang.Object

Hibernate's default proxying mechanism proxies Groovy's getMetaClass() method. To avoid this we customize the proxying creation proxy here and in #GroovyAwareJavassistLazyInitializer.

Authors:
Graeme Rocher
Since:
1.1.1


Field Summary
protected static java.lang.Class[] NO_CLASSES

 
Method Summary
org.hibernate.proxy.HibernateProxy getProxy(java.io.Serializable id, org.hibernate.engine.SessionImplementor session)

void postInstantiate(java.lang.String entityName, java.lang.Class persistentClass, java.util.Set interfaces, java.lang.reflect.Method getIdentifierMethod, java.lang.reflect.Method setIdentifierMethod, org.hibernate.type.CompositeType componentIdType)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

NO_CLASSES

protected static final java.lang.Class[] NO_CLASSES


 
Method Detail

getProxy

public org.hibernate.proxy.HibernateProxy getProxy(java.io.Serializable id, org.hibernate.engine.SessionImplementor session)


postInstantiate

@SuppressWarnings({"unchecked", "hiding", "rawtypes"})
public void postInstantiate(java.lang.String entityName, java.lang.Class persistentClass, java.util.Set interfaces, java.lang.reflect.Method getIdentifierMethod, java.lang.reflect.Method setIdentifierMethod, org.hibernate.type.CompositeType componentIdType)


 

Groovy Documentation