|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Objectjava.lang.Thread
net.argius.stu.Application
アプリケーション本体です。 メインループと入力分岐を実装しています。 多重スレッドでの起動を想定しています。
| フィールドの概要 |
| クラス java.lang.Thread から継承したフィールド |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| コンストラクタの概要 | |
|
Application()
ログ出力用のオブジェクトを生成します。 |
protected |
Application(net.argius.stu.Environment env)
Applicationを生成します。 |
| メソッドの概要 | |
protected static void |
addException(Exception ex)
初期化時のエラーを通知するために例外を蓄積します。 |
List |
getConnectorNames()
接続名リストを取得します。 |
IOManager |
getIOManager()
このアプリケーションスレッドの入出力マネージャを取得します。 |
int |
getLogLevel()
ログレベルを返します。 |
protected String |
getMessage(String key)
メッセージを取得します。 |
protected String |
getMessage(String key,
String args)
パラメータ埋め込み済みメッセージを取得します。 |
String |
getProperty(String key)
プロパティを取得します。 |
ResourceBundle |
getResourceBundle(String family)
多言語対応リソースを取得します。 |
File |
getSystemDirectory()
システムファイルの保存先ディレクトリを返します。 |
static Version |
getVersion()
バージョン情報を返します。 |
File |
getWorkDirectory()
ワークディレクトリを返します。 |
boolean |
isUserSpecified(String connectorName)
指定した接続がユーザ指定済みかどうかを調査します。 |
void |
notifyExit()
アプリケーションスレッドを終了させるよう通知します。 |
void |
propertyChange(PropertyChangeEvent event)
プロパティが変更されたときの処理を実行します。 |
void |
run()
アプリケーションのメインロジックを実行します。 |
void |
setWorkDirectory(File file)
ワークディレクトリをセットします。 |
static void |
startMain(String[] args)
アプリケーションを起動します。 |
static void |
startNew(String[] args)
新しいアプリケーションスレッドを開始します。 |
void |
writeLog(int level,
String message)
ログを出力します。 |
void |
writeLog(int level,
String message,
Throwable th)
ログを出力します。 |
void |
writeLog(int level,
Throwable th)
ログを出力します。 |
| クラス java.lang.Thread から継承したメソッド |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
public Application()
protected Application(net.argius.stu.Environment env)
env - 環境| メソッドの詳細 |
public static void startMain(String[] args)
args - 実行時引数public static final void startNew(String[] args)
args - 実行時引数protected static void addException(Exception ex)
ex - 例外public void propertyChange(PropertyChangeEvent event)
PropertyChangeListener 内の propertyChangeevent - プロパティ変更イベントpublic void notifyExit()
public IOManager getIOManager()
public void run()
Runnable 内の runpublic String getProperty(String key)
key - プロパティキー
public void writeLog(int level,
String message)
level - ログレベルmessage - ログメッセージ
public void writeLog(int level,
Throwable th)
level - ログレベルth - 例外またはエラー
public void writeLog(int level,
String message,
Throwable th)
level - ログレベルmessage - ログメッセージth - 例外またはエラーpublic int getLogLevel()
public ResourceBundle getResourceBundle(String family)
family - リソース名
public List getConnectorNames()
public boolean isUserSpecified(String connectorName)
connectorName - 接続名
true、そうでなければfalsepublic File getSystemDirectory()
public File getWorkDirectory()
public void setWorkDirectory(File file)
file - ワークディレクトリprotected final String getMessage(String key)
key - メッセージキー
protected final String getMessage(String key,
String args)
key - メッセージキーargs - 埋め込むパラメータ
public static Version getVersion()
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||