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