Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (日本語) » Mobile Link - サーバ管理 » Mobile Link サーバ API » Java による同期スクリプトの作成 » Java 用 Mobile Link サーバ API リファレンス » ServerContext インタフェース

 

getStartClassInstances メソッド

構文
public java.lang.Object[ ] getStartClassInstances( )

サーバ起動時に構築された起動クラスの配列を取得します。起動クラスがない場合、配列の長さは 0 です。

戻り値

サーバ起動時に構築された起動クラスの配列。起動クラスがない場合は、長さが 0 の配列。

次に、getStartClassInstances() を使用する例を示します。

Object objs[] = sc.getStartClassInstances();
int i;
for (i=0; i < objs.length; i += 1) {
    if (objs[i] instanceof MyClass) {
        // Use class.
    }
}
参照