ts.util.lifetime
クラス RuntimeLifetime

java.lang.Object
  上位を拡張 ts.util.lifetime.Lifetime
      上位を拡張 ts.util.lifetime.RuntimeLifetime

public class RuntimeLifetime
extends Lifetime

Runtimeオブジェクトの終了に合わせて生存期間の終了 を決定するLifetimeクラス。
指定されたRuntimeオブジェクトを使って Java VM の シャットダウンを検知し、格納されているLifewillDie()メソッドを呼び出す。

バージョン:
$Revision: 1.2 $, $Date: 2007/06/25 16:20:45 $
作成者:
佐藤隆之.

コンストラクタの概要
RuntimeLifetime()
          デフォルトコンストラクタ。
 
メソッドの概要
 void setLifeLong(java.lang.Runtime runtime)
          生存期間を決定するRuntimeオブジェクトを設定する。
 
クラス ts.util.lifetime.Lifetime から継承されたメソッド
add, catchException, createLifeList, enumeration, finalize, kill, setupPeriodicEvent, setupScheduledEvent
 
クラス java.lang.Object から継承されたメソッド
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

RuntimeLifetime

public RuntimeLifetime()
デフォルトコンストラクタ。

メソッドの詳細

setLifeLong

public void setLifeLong(java.lang.Runtime runtime)
生存期間を決定するRuntimeオブジェクトを設定する。

パラメータ:
runtime - 生存期間を決定するRuntime オブジェクト。
例外:
java.lang.IllegalStateException - 指定されたRuntime の仮想マシンが既にシャットダウン中である場合。
java.lang.AssertionError - 引数がヌルの場合(デバッグ・モードのみ)。


Copyright (C) SATOH Takayuki All Rights Reserved.