Class ByteBuddyInterceptor
- java.lang.Object
-
- org.hibernate.proxy.AbstractLazyInitializer
-
- org.hibernate.proxy.pojo.BasicLazyInitializer
-
- org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor
-
- All Implemented Interfaces:
LazyInitializer,ProxyConfiguration.Interceptor
public class ByteBuddyInterceptor extends BasicLazyInitializer implements ProxyConfiguration.Interceptor
-
-
Field Summary
-
Fields inherited from class org.hibernate.proxy.pojo.BasicLazyInitializer
componentIdType, getIdentifierMethod, INVOKE_IMPLEMENTATION, overridesEquals, persistentClass, setIdentifierMethod
-
-
Constructor Summary
Constructors Constructor Description ByteBuddyInterceptor(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, CompositeType componentIdType, SharedSessionContractImplementor session, boolean overridesEquals)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectintercept(java.lang.Object proxy, java.lang.reflect.Method thisMethod, java.lang.Object[] args)Intercepts a method call to a proxy.protected java.lang.ObjectserializableProxy()-
Methods inherited from class org.hibernate.proxy.pojo.BasicLazyInitializer
getPersistentClass, invoke
-
Methods inherited from class org.hibernate.proxy.AbstractLazyInitializer
getEntityName, getIdentifier, getImplementation, getImplementation, getInternalIdentifier, getSession, getSessionFactoryUuid, getTarget, initialize, initializeWithoutLoadIfPossible, isAllowLoadOutsideTransaction, isConnectedToSession, isReadOnly, isReadOnlyBeforeAttachedToSession, isReadOnlySettingAvailable, isUninitialized, isUnwrap, permissiveInitialization, prepareForPossibleLoadingOutsideTransaction, setIdentifier, setImplementation, setReadOnly, setSession, setUnwrap, unsetSession
-
-
-
-
Constructor Detail
-
ByteBuddyInterceptor
public ByteBuddyInterceptor(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, CompositeType componentIdType, SharedSessionContractImplementor session, boolean overridesEquals)
-
-
Method Detail
-
intercept
public java.lang.Object intercept(java.lang.Object proxy, java.lang.reflect.Method thisMethod, java.lang.Object[] args) throws java.lang.ThrowableDescription copied from interface:ProxyConfiguration.InterceptorIntercepts a method call to a proxy.- Specified by:
interceptin interfaceProxyConfiguration.Interceptor- Parameters:
proxy- The proxied instance.thisMethod- The invoked method.args- The intercepted method arguments.- Returns:
- The method's return value.
- Throws:
java.lang.Throwable- If the intercepted method raises an exception.
-
serializableProxy
protected java.lang.Object serializableProxy()
- Specified by:
serializableProxyin classBasicLazyInitializer
-
-