Class ProxyConfiguration.InterceptorDispatcher

java.lang.Object
org.hibernate.proxy.ProxyConfiguration.InterceptorDispatcher
Enclosing interface:
ProxyConfiguration

public static class ProxyConfiguration.InterceptorDispatcher extends Object
A static interceptor that guards against method calls before the interceptor is set.
  • Constructor Details

    • InterceptorDispatcher

      public InterceptorDispatcher()
  • Method Details

    • 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.
      Parameters:
      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.
      Returns:
      The intercepted method's return value.
      Throws:
      Throwable - If the intercepted method raises an exception.