intercept
@RuntimeType
public static Object intercept(@This
Object instance,
@Origin
Method method,
@AllArguments
Object[] arguments,
@StubValue
Object stubValue,
@FieldValue("$$_hibernate_interceptor")
ProxyConfiguration.Interceptor interceptor)
throws Throwable
Intercepts a method call to a proxy.
- 参数:
instance - The proxied instance.
method - The invoked method.
arguments - The method arguments.
stubValue - The intercepted method's default value.
interceptor - The proxy object's interceptor instance.
- 返回:
- The intercepted method's return value.
- 抛出:
Throwable - If the intercepted method raises an exception.