public class ByteBuddyGroovyInterceptor extends org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor
A ByteBuddy interceptor that avoids initializing the proxy for Groovy-specific methods. Mirrors the Hibernate 7 implementation in grails-data-hibernate7.
| Constructor and description |
|---|
ByteBuddyGroovyInterceptor(java.lang.String entityName, java.lang.Class<?> persistentClass, java.lang.Class<?>[] interfaces, java.io.Serializable id, java.lang.reflect.Method getIdentifierMethod, java.lang.reflect.Method setIdentifierMethod, org.hibernate.type.CompositeType componentIdType, org.hibernate.engine.spi.SharedSessionContractImplementor session, boolean overridesEquals, boolean lazyToString) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public java.lang.Object |
intercept(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) |
|
protected java.lang.Object |
serializableProxy()Writes the proxy as a SerializableGroovyProxy, which reads back through ByteBuddyGroovyProxyFactory as the same Groovy-aware proxy. |
| Methods inherited from class | Name |
|---|---|
class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor |
org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#equals(java.lang.Object), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#getClass(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#getEntityDescriptor(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#getEntityName(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#getIdentifier(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#getImplementation(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#getImplementation(org.hibernate.engine.spi.SharedSessionContractImplementor), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#getImplementationClass(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#getImplementationEntityName(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#getInternalIdentifier(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#getPersistentClass(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#getSession(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#hashCode(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#initialize(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#initializeWithoutLoadIfPossible(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#intercept(java.lang.Object, java.lang.reflect.Method, [Ljava.lang.Object;), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#isReadOnly(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#isReadOnlyBeforeAttachedToSession(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#isReadOnlySettingAvailable(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#isUninitialized(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#isUnwrap(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#notify(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#notifyAll(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#setIdentifier(java.lang.Object), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#setImplementation(java.lang.Object), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#setReadOnly(boolean), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#setSession(org.hibernate.engine.spi.SharedSessionContractImplementor), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#setUnwrap(boolean), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#toString(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#unsetSession(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#wait(), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#wait(long), org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor#wait(long, int) |
Writes the proxy as a SerializableGroovyProxy, which reads back through ByteBuddyGroovyProxyFactory as the same Groovy-aware proxy. Hibernate's own serialized form only rebuilds stock proxies, through the global bytecode provider.