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, invoke
getEntityName, getIdentifier, getImplementation, getImplementation, getSession, getSessionFactoryUuid, getTarget, initialize, initializeWithoutLoadIfPossible, isAllowLoadOutsideTransaction, isConnectedToSession, isReadOnly, isReadOnlyBeforeAttachedToSession, isReadOnlySettingAvailable, isUninitialized, isUnwrap, permissiveInitialization, prepareForPossibleLoadingOutsideTransaction, setIdentifier, setImplementation, setReadOnly, setSession, setUnwrap, unsetSession
public 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.Interceptor
intercept
in interface ProxyConfiguration.Interceptor
proxy
- 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 BasicLazyInitializer
Copyright © 2021 JBoss by Red Hat. All rights reserved.