Top Fields Constructors Methods
org.hibernate.proxy.pojo.bytebuddy

public Class ByteBuddyInterceptor

extends BasicLazyInitializer
implements Interceptor
Class Inheritance
All Implemented Interfaces
org.hibernate.proxy.ProxyConfiguration.Interceptor
Imports
java.io.Serializable, java.lang.reflect.InvocationTargetException, .Method, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.internal.CoreMessageLogger, org.hibernate.internal.util.ReflectHelper, org.hibernate.proxy.ProxyConfiguration, org.hibernate.proxy.pojo.BasicLazyInitializer, org.hibernate.type.CompositeType

Field Summary

Modifier and TypeField and Description
private final Class<T>[]
private static final CoreMessageLogger
Inherited from org.hibernate.proxy.pojo.BasicLazyInitializer:
componentIdTypegetIdentifierMethodINVOKE_IMPLEMENTATIONoverridesEqualspersistentClasssetIdentifierMethod

Constructor Summary

AccessConstructor and Description
public
ByteBuddyInterceptor(String entityName, Class<T> persistentClass, Class<T>[] interfaces, Serializable id, Method getIdentifierMethod, Method setIdentifierMethod, CompositeType componentIdType, SharedSessionContractImplementor session, boolean overridesEquals)

Method Summary

Modifier and TypeMethod and Description
public Object
intercept(Object
The proxied instance.
proxy
,
Method
The invoked method.
thisMethod
,
Object[]
The intercepted method arguments.
args
)

Implements org.hibernate.proxy.ProxyConfiguration.Interceptor.intercept.

Intercepts a method call to a proxy.
protected Object
Inherited from org.hibernate.proxy.pojo.BasicLazyInitializer:
getPersistentClassinvoke

Field Detail

interfacesback to summary
private final Class<T>[] interfaces
LOGback to summary
private static final CoreMessageLogger LOG

Hides org.hibernate.proxy.AbstractLazyInitializer.LOG.

Constructor Detail

ByteBuddyInterceptorback to summary
public ByteBuddyInterceptor(String entityName, Class<T> persistentClass, Class<T>[] interfaces, Serializable id, Method getIdentifierMethod, Method setIdentifierMethod, CompositeType componentIdType, SharedSessionContractImplementor session, boolean overridesEquals)

Method Detail

interceptback to summary
public Object intercept(Object proxy, Method thisMethod, Object[] args) throws Throwable

Implements org.hibernate.proxy.ProxyConfiguration.Interceptor.intercept.

Doc from org.hibernate.proxy.ProxyConfiguration.Interceptor.intercept.

Intercepts a method call to a proxy.

Parameters
proxy:Object

The proxied instance.

thisMethod:Method

The invoked method.

args:Object[]

The intercepted method arguments.

Returns:Object

The method's return value.

Annotations
@Override
Exceptions
Throwable:
If the intercepted method raises an exception.
serializableProxyback to summary
protected Object serializableProxy()

Implements abstract org.hibernate.proxy.pojo.BasicLazyInitializer.serializableProxy.

Annotations
@Override