public class ByteBuddyInterceptor extends BasicLazyInitializer implements ProxyConfiguration.Interceptor
componentIdType, getIdentifierMethod, INVOKE_IMPLEMENTATION, overridesEquals, persistentClass, setIdentifierMethod| Constructor and Description |
|---|
ByteBuddyInterceptor(String entityName,
Class persistentClass,
Class[] interfaces,
Serializable id,
Method getIdentifierMethod,
Method setIdentifierMethod,
CompositeType componentIdType,
SharedSessionContractImplementor session,
boolean overridesEquals) |
| Modifier and Type | Method and Description |
|---|---|
Object |
intercept(Object proxy,
Method thisMethod,
Object[] args)
Intercepts a method call to a proxy.
|
protected Object |
serializableProxy() |
getPersistentClass, invokegetEntityName, getIdentifier, getImplementation, getImplementation, getInternalIdentifier, getSession, getSessionFactoryUuid, getTarget, initialize, initializeWithoutLoadIfPossible, isAllowLoadOutsideTransaction, isConnectedToSession, isReadOnly, isReadOnlyBeforeAttachedToSession, isReadOnlySettingAvailable, isUninitialized, isUnwrap, permissiveInitialization, prepareForPossibleLoadingOutsideTransaction, setIdentifier, setImplementation, setReadOnly, setSession, setUnwrap, unsetSessionpublic ByteBuddyInterceptor(String entityName, Class persistentClass, Class[] interfaces, Serializable id, Method getIdentifierMethod, Method setIdentifierMethod, CompositeType componentIdType, SharedSessionContractImplementor session, boolean overridesEquals)
public Object intercept(Object proxy, Method thisMethod, Object[] args) throws Throwable
ProxyConfiguration.Interceptorintercept in interface ProxyConfiguration.Interceptorproxy - The proxied instance.thisMethod - The invoked method.args - The intercepted method arguments.Throwable - If the intercepted method raises an exception.protected Object serializableProxy()
serializableProxy in class BasicLazyInitializerCopyright © 2001-2022 Red Hat, Inc. All Rights Reserved.