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(String entityName, Class<?> persistentClass, Class<?>[] interfaces, Object id, Method getIdentifierMethod, Method setIdentifierMethod, CompositeType componentIdType, SharedSessionContractImplementor session, boolean overridesEquals)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectintercept(Object proxy, Method thisMethod, Object[] args)Intercepts a method call to a proxy.protected ObjectserializableProxy()-
Methods inherited from class org.hibernate.proxy.pojo.BasicLazyInitializer
getImplementationClass, getPersistentClass, invoke
-
Methods inherited from class org.hibernate.proxy.AbstractLazyInitializer
getEntityName, getIdentifier, getImplementation, getImplementation, getImplementationEntityName, getInternalIdentifier, getSession, getSessionFactoryName, getSessionFactoryUuid, getTarget, initialize, initializeWithoutLoadIfPossible, isAllowLoadOutsideTransaction, isConnectedToSession, isReadOnly, isReadOnlyBeforeAttachedToSession, isReadOnlySettingAvailable, isUninitialized, isUnwrap, permissiveInitialization, prepareForPossibleLoadingOutsideTransaction, setIdentifier, setImplementation, setReadOnly, setSession, setUnwrap, unsetSession
-
-
-
-
Constructor Detail
-
ByteBuddyInterceptor
public ByteBuddyInterceptor(String entityName, Class<?> persistentClass, Class<?>[] interfaces, Object id, Method getIdentifierMethod, Method setIdentifierMethod, CompositeType componentIdType, SharedSessionContractImplementor session, boolean overridesEquals)
-
-
Method Detail
-
intercept
public Object intercept(Object proxy, Method thisMethod, Object[] args) throws Throwable
Description 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:
Throwable- If the intercepted method raises an exception.
-
serializableProxy
protected Object serializableProxy()
- Specified by:
serializableProxyin classBasicLazyInitializer
-
-