org.springframework.remoting.support

## 类 RemoteInvocationTraceInterceptor

- java.lang.Object
- - org.springframework.remoting.support.RemoteInvocationTraceInterceptor

- 所有已实现的接口:
    org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

      public class RemoteInvocationTraceInterceptor
      extends Object
      implements org.aopalliance.intercept.MethodInterceptor

  AOP Alliance MethodInterceptor for tracing remote invocations. Automatically applied by RemoteExporter and its subclasses.

  Logs an incoming remote call as well as the finished processing of a remote call at DEBUG level. If the processing of a remote call results in a checked exception, the exception will get logged at INFO level; if it results in an unchecked exception (or error), the exception will get logged at WARN level.

  The logging of exceptions is particularly useful to save the stacktrace information on the server-side rather than just propagating the exception to the client (who might or might not log it properly).

  从以下版本开始:
    1.2
  作者:
    Juergen Hoeller
  另请参阅:
    `RemoteExporter.setRegisterTraceInterceptor(boolean)`, `RemoteExporter.getProxyForService()`

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected static Log` | `logger`

  - ### 构造器概要

    构造器
    构造器和说明
    `RemoteInvocationTraceInterceptor()` Create a new RemoteInvocationTraceInterceptor.
    `RemoteInvocationTraceInterceptor(String exporterName)` Create a new RemoteInvocationTraceInterceptor.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `Object` | `invoke(org.aopalliance.intercept.MethodInvocation invocation)`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### logger

          protected static final Log logger

  - ### 构造器详细资料

    - #### RemoteInvocationTraceInterceptor

          public RemoteInvocationTraceInterceptor()

      Create a new RemoteInvocationTraceInterceptor.

    - #### RemoteInvocationTraceInterceptor

          public RemoteInvocationTraceInterceptor(String exporterName)

      Create a new RemoteInvocationTraceInterceptor.
      参数:
        `exporterName` - the name of the remote exporter (to be used as context information in log messages)

  - ### 方法详细资料

    - #### invoke

          public Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
                        throws Throwable

      指定者:
        `invoke` 在接口中 `org.aopalliance.intercept.MethodInterceptor`
      抛出:
        `Throwable`