tsukuba_bunko.peko.resource
クラス LocationConfigurator

java.lang.Object
  上位を拡張 tsukuba_bunko.peko.resource.LocationConfigurator

public class LocationConfigurator
extends java.lang.Object

ディレクトリロケーション設定を構成する機能を提供します。

バージョン:
$Revision: 1.1 $
作成者:
$Author: ppoi $

コンストラクタの概要
LocationConfigurator()
          LocationConfigurator のインスタンスを作成します。
 
メソッドの概要
 LocationResources configure(Resources systemResources)
          システム構成リソースの内容から構成された LocationResources を生成します。
protected  java.net.URL configureDirectoryURL(java.lang.String directory, java.io.File installDir)
          ディレクトリ URL を構成します。
protected  java.io.File detectInstallDirectory()
          インストールディレクトリを取得します。
protected  java.io.File ensureSaveDirectory(java.lang.String directory, java.io.File installDir)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

LocationConfigurator

public LocationConfigurator()
LocationConfigurator のインスタンスを作成します。

メソッドの詳細

detectInstallDirectory

protected java.io.File detectInstallDirectory()
インストールディレクトリを取得します。

戻り値:
インストールディレクトリのファイルシステム上の抽象パス

configureDirectoryURL

protected java.net.URL configureDirectoryURL(java.lang.String directory,
                                             java.io.File installDir)
ディレクトリ URL を構成します。指定されたディレクトリがファイルだった場合、JAR アーカイブとして処理します。

パラメータ:
directory - データ格納ディレクトリ名
installDir - インストールディレクトリ
戻り値:
構成された URL

ensureSaveDirectory

protected java.io.File ensureSaveDirectory(java.lang.String directory,
                                           java.io.File installDir)

configure

public LocationResources configure(Resources systemResources)
システム構成リソースの内容から構成された LocationResources を生成します。

パラメータ:
systemResources - システム構成リソース
戻り値:
構成済みの LocationResources インスタンス


All Rights Reserved. © 1999-2006 The "Peko" Project, Tsukuba Bunko.