public abstract class RemoteInvocationBasedExporter extends RemoteExporter
RemoteInvocation
オブジェクトの逆直列化に基づくリモートサービスエクスポーターの抽象基本クラス。 デフォルトの戦略として DefaultRemoteInvocationExecutor
を持つ "remoteInvocationExecutor" プロパティを提供します。
RemoteInvocationExecutor
, DefaultRemoteInvocationExecutor
logger
コンストラクターと説明 |
---|
RemoteInvocationBasedExporter() |
修飾子と型 | メソッドと説明 |
---|---|
RemoteInvocationExecutor | getRemoteInvocationExecutor() このエクスポーターが使用する RemoteInvocationExecutor を返します。 |
protected java.lang.Object | invoke(RemoteInvocation invocation, java.lang.Object targetObject) 指定されたリモート呼び出しを指定されたターゲットオブジェクトに適用します。 |
protected RemoteInvocationResult | invokeAndCreateResult(RemoteInvocation invocation, java.lang.Object targetObject) 指定されたリモート呼び出しを指定されたターゲットオブジェクトに適用し、呼び出し結果をシリアライズ可能な RemoteInvocationResult オブジェクトにラップします。 |
void | setRemoteInvocationExecutor(RemoteInvocationExecutor remoteInvocationExecutor) このエクスポーターで使用する RemoteInvocationExecutor を設定します。 |
checkService, checkServiceInterface, getExporterName, getProxyForService, getService, getServiceInterface, setInterceptors, setRegisterTraceInterceptor, setService, setServiceInterface
getBeanClassLoader, overrideThreadContextClassLoader, resetThreadContextClassLoader, setBeanClassLoader
public void setRemoteInvocationExecutor(RemoteInvocationExecutor remoteInvocationExecutor)
カスタムの呼び出しエグゼキューターは、ユーザーの資格情報など、呼び出しからさらにコンテキスト情報を抽出できます。
public RemoteInvocationExecutor getRemoteInvocationExecutor()
protected java.lang.Object invoke(RemoteInvocation invocation, java.lang.Object targetObject) throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
カスタム呼び出し動作のサブクラスでオーバーライドできます。カスタム RemoteInvocation サブクラスから追加の呼び出しパラメーターを適用する場合もあります。再利用可能な戦略であるカスタム RemoteInvocationExecutor を使用することをお勧めします。
invocation
- リモート呼び出し targetObject
- 呼び出しを適用するターゲットオブジェクト java.lang.NoSuchMethodException
- メソッド名を解決できなかった場合 java.lang.IllegalAccessException
- メソッドにアクセスできなかった場合 java.lang.reflect.InvocationTargetException
- メソッド呼び出しにより例外が発生した場合 RemoteInvocationExecutor.invoke(org.springframework.remoting.support.RemoteInvocation, java.lang.Object)
protected RemoteInvocationResult invokeAndCreateResult(RemoteInvocation invocation, java.lang.Object targetObject)
たとえば追加のコンテキスト情報を返すなど、カスタム呼び出し動作のサブクラスでオーバーライドできます。これは RemoteInvocationExecutor 戦略ではカバーされないことに注意してください!
invocation
- リモート呼び出し targetObject
- 呼び出しを適用するターゲットオブジェクト invoke(org.springframework.remoting.support.RemoteInvocation, java.lang.Object)