org.springframework.remoting.support

## 类 RemotingSupport

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

- 所有已实现的接口:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware
  直接已知子类:
    RemoteAccessor, RemoteExporter

      public abstract class RemotingSupport
      extends Object
      implements org.springframework.beans.factory.BeanClassLoaderAware

  Generic support base class for remote accessor and exporters, providing common bean ClassLoader handling.
  从以下版本开始:
    2.5.2
  作者:
    Juergen Hoeller

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected Log` | `logger` Logger available to subclasses

  - ### 构造器概要

    构造器
    构造器和说明
    `RemotingSupport()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected ClassLoader` | `getBeanClassLoader()` Return the ClassLoader that this accessor operates in, to be used for deserializing and for generating proxies.
    `protected ClassLoader` | `overrideThreadContextClassLoader()` Override the thread context ClassLoader with the environment's bean ClassLoader if necessary, i.e. if the bean ClassLoader is not equivalent to the thread context ClassLoader already.
    `protected void` | `resetThreadContextClassLoader(ClassLoader original)` Reset the original thread context ClassLoader if necessary.
    `void` | `setBeanClassLoader(ClassLoader classLoader)`

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

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

- - ### 字段详细资料

    - #### logger

          protected final Log logger

      Logger available to subclasses

  - ### 构造器详细资料

    - #### RemotingSupport

          public RemotingSupport()

  - ### 方法详细资料

    - #### setBeanClassLoader

          public void setBeanClassLoader(ClassLoader classLoader)

      指定者:
        `setBeanClassLoader` 在接口中 `org.springframework.beans.factory.BeanClassLoaderAware`

    - #### getBeanClassLoader

          protected ClassLoader getBeanClassLoader()

      Return the ClassLoader that this accessor operates in, to be used for deserializing and for generating proxies.

    - #### overrideThreadContextClassLoader

          @Nullable
          protected ClassLoader overrideThreadContextClassLoader()

      Override the thread context ClassLoader with the environment's bean ClassLoader if necessary, i.e. if the bean ClassLoader is not equivalent to the thread context ClassLoader already.
      返回:
        the original thread context ClassLoader, or `null` if not overridden

    - #### resetThreadContextClassLoader

          protected void resetThreadContextClassLoader(@Nullable
                                                       ClassLoader original)

      Reset the original thread context ClassLoader if necessary.
      参数:
        `original` - the original thread context ClassLoader, or `null` if not overridden (and hence nothing to reset)