28.22.2 ChainUntypedObjectWrapperFactoryのメソッド
-
UntypedObjectWrapperFactory_ptr factory,Location loc);
このメソッドは,指定したアンタイプドオブジェクトラッパーファクトリを,クライアントアプリケーション,サーバアプリケーション,またはクライアントとサーバの機能を持つアプリケーションに追加します。
アプリケーションがクライアント,およびサーバのアプリケーションとして動作している場合,つまりクライアントとサーバの機能を持つアプリケーションである場合は,アンタイプドオブジェクトラッパーファクトリをインストールできます。このため,バインドしたオブジェクト,およびオブジェクトインプリメンテーションが受信したオペレーション要求の呼び出しに対してオブジェクトラッパーのメソッドが呼び出せます。つまり,これらのメソッドはアプリケーションのクライアント部分とサーバ部分の両方で呼び出せます。
- 注
-
クライアント側では,オブジェクトをバインドする前にアンタイプドオブジェクトラッパーファクトリをインストールしておいてください。サーバ側では,インプリメンテーションオブジェクトの呼び出しを受信する前にアンタイプドオブジェクトラッパーファクトリをインストールしておいてください。
-
factory
登録するファクトリを指すポインタ
-
loc
追加するファクトリの位置。次のどれかの値になります。
VISObjectWrapper::Client
VISObjectWrapper::Server
VISObjectWrapper::Both
-
UntypedObjectWrapperFactory_ptr factory, Location loc);
このメソッドは,指定したアンタイプドオブジェクトラッパーファクトリを指定した位置から削除します。
アプリケーションがクライアントとサーバの両方で動作している場合は,オブジェクトラッパーファクトリを,クライアント側オブジェクト,サーバ側オブジェクト,またはその両方から削除できます。
- 注
-
オブジェクトラッパーファクトリをクライアントから削除しても,すでにクライアントからバインドされている同じクラスのオブジェクトには影響しません。しかし,削除したあとにバインドしたオブジェクトには影響します。オブジェクトラッパーファクトリをサーバから削除しても,すでにリクエストにサービスされているオブジェクトインプリメンテーションには影響しません。しかし,削除したあとに生成したオブジェクトインプリメンテーションには影響します。
-
factory
登録するファクトリを指すポインタ
-
loc
削除されるファクトリの位置。次のどれかの値になります。
VISObjectWrapper::Client
VISObjectWrapper::Server
VISObjectWrapper::Both
-
Location loc);
この静的メソッドは,指定位置にインストールされたアンタイプドオブジェクトラッパーファクトリの数を返します。
-
loc
ファクトリの位置。次のどれかの値になります。
VISObjectWrapper::Client
VISObjectWrapper::Server
VISObjectWrapper::Both
-
-
static ChainUntypedObjectWrapperFactory* instance(
CORBA::Boolean doCreate=1);
このメソッドは,プロセスでユニークなChainUntypedObjectWrapperFactoryのインスタンスを返却します。
-
doCreate
1を指定した場合,ChainUntypedObjectWrapperFactoryのインスタンスが存在しないとき,新しくインスタンスを作成して返却します。
0を指定した場合,ChainUntypedObjectWrapperFactoryのインスタンスが存在しないとき,NULLリファレンスを返却します。
デフォルトは1です。
-