org.springframework.remoting.support

## 类 RemoteAccessor

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

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

      public abstract class RemoteAccessor
      extends RemotingSupport

  Abstract base class for classes that access a remote service. Provides a "serviceInterface" bean property.

  Note that the service interface being used will show some signs of remotability, like the granularity of method calls that it offers. Furthermore, it has to have serializable arguments etc.

  Accessors are supposed to throw Spring's generic `RemoteAccessException` in case of remote invocation failure, provided that the service interface does not declare `java.rmi.RemoteException`.

  从以下版本开始:
    13.05.2003
  作者:
    Juergen Hoeller
  另请参阅:
    `RemoteAccessException`, `RemoteException`

- - ### 字段概要

    - ### 从类继承的字段 org.springframework.remoting.support.RemotingSupport

      `logger`

  - ### 构造器概要

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

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `Class<?>` | `getServiceInterface()` Return the interface of the service to access.
    `void` | `setServiceInterface(Class<?> serviceInterface)` Set the interface of the service to access.

    - ### 从类继承的方法 org.springframework.remoting.support.RemotingSupport

      `getBeanClassLoader, overrideThreadContextClassLoader, resetThreadContextClassLoader, setBeanClassLoader`

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

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

- - ### 构造器详细资料

    - #### RemoteAccessor

          public RemoteAccessor()

  - ### 方法详细资料

    - #### setServiceInterface

          public void setServiceInterface(Class<?> serviceInterface)

      Set the interface of the service to access. The interface must be suitable for the particular service and remoting strategy.

      Typically required to be able to create a suitable service proxy, but can also be optional if the lookup returns a typed proxy.

    - #### getServiceInterface

          public Class<?> getServiceInterface()

      Return the interface of the service to access.