public class ByteBuddyInterceptor extends BasicLazyInitializer implements ProxyConfiguration.Interceptor
componentIdType, getIdentifierMethod, INVOKE_IMPLEMENTATION, overridesEquals, persistentClass, setIdentifierMethod
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
intercept(java.lang.Object proxy,
java.lang.reflect.Method thisMethod,
java.lang.Object[] args)
Intercepts a method call to a proxy.
|
protected java.lang.Object |
serializableProxy() |
getPersistentClass, invoke
getEntityName, getIdentifier, getImplementation, getImplementation, getSession, getTarget, initialize, isConnectedToSession, isReadOnly, isReadOnlyBeforeAttachedToSession, isReadOnlySettingAvailable, isUninitialized, isUnwrap, permissiveInitialization, prepareForPossibleLoadingOutsideTransaction, setIdentifier, setImplementation, setReadOnly, setSession, setUnwrap, unsetSession
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)
public java.lang.Object intercept(java.lang.Object proxy, java.lang.reflect.Method thisMethod, java.lang.Object[] args) throws java.lang.Throwable
ProxyConfiguration.Interceptor
intercept
in interface ProxyConfiguration.Interceptor
proxy
- The proxied instance.thisMethod
- The invoked method.args
- The intercepted method arguments.java.lang.Throwable
- If the intercepted method raises an exception.protected java.lang.Object serializableProxy()
serializableProxy
in class BasicLazyInitializer
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.