Class ByteBuddyInterceptor

    • Constructor Detail

      • ByteBuddyInterceptor

        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)
    • Method Detail

      • intercept

        public java.lang.Object intercept​(java.lang.Object proxy,
                                          java.lang.reflect.Method thisMethod,
                                          java.lang.Object[] args)
                                   throws java.lang.Throwable
        Description copied from interface: ProxyConfiguration.Interceptor
        Intercepts a method call to a proxy.
        Specified by:
        intercept in interface ProxyConfiguration.Interceptor
        Parameters:
        proxy - The proxied instance.
        thisMethod - The invoked method.
        args - The intercepted method arguments.
        Returns:
        The method's return value.
        Throws:
        java.lang.Throwable - If the intercepted method raises an exception.