public abstract class RmiBasedExporter extends RemoteInvocationBasedExporter
RmiInvocationHandler
リモートインターフェースを公開する機能を提供します。RMI 呼び出しメカニズムを使用して、RMI 通信は RmiInvocationHandler
レベルで動作し、任意の数のサービスの共通の呼び出しスタブを共有します。java.rmi.Remote
を継承したり、すべてのサービスメソッドで java.rmi.RemoteException
を宣言したりするために、サービスインターフェースは必要ありません。ただし、入力パラメーターと出力パラメーターはまだ直列化可能である必要があります。
RmiServiceExporter
, JndiRmiServiceExporter
logger
コンストラクターと説明 |
---|
RmiBasedExporter() |
修飾子と型 | メソッドと説明 |
---|---|
protected RemoteSE | getObjectToExport() エクスポートするオブジェクトを決定します。非 RMI サービスオブジェクトの場合は、サービスオブジェクト自体または RmiInvocationWrapper のいずれかです。 |
protected ObjectSE | invoke(RemoteInvocation invocation, ObjectSE targetObject) RmiInvocationWrapper から見えるようにここで再定義されました。 |
getRemoteInvocationExecutor, invokeAndCreateResult, setRemoteInvocationExecutor
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
protected RemoteSE getObjectToExport()
RemoteExporter.setService(java.lang.Object)
, RemoteExporter.setServiceInterface(java.lang.Class<?>)
protected ObjectSE invoke(RemoteInvocation invocation, ObjectSE targetObject) throws NoSuchMethodExceptionSE, IllegalAccessExceptionSE, InvocationTargetExceptionSE
RemoteInvocationBasedExporter
の invoke
invocation
- リモート呼び出し targetObject
- 呼び出しを適用するターゲットオブジェクト NoSuchMethodExceptionSE
- メソッド名を解決できなかった場合 IllegalAccessExceptionSE
- メソッドにアクセスできなかった場合 InvocationTargetExceptionSE
- メソッド呼び出しにより例外が発生した場合 RemoteInvocationExecutor.invoke(org.springframework.remoting.support.RemoteInvocation, java.lang.Object)