Line | Hits | Source |
---|---|---|
1 | /* | |
2 | ||
3 | Copyright (C) 2008 NTT DATA Corporation | |
4 | ||
5 | This program is free software; you can redistribute it and/or | |
6 | Modify it under the terms of the GNU General Public License | |
7 | as published by the Free Software Foundation, version 2. | |
8 | ||
9 | This program is distributed in the hope that it will be | |
10 | useful, but WITHOUT ANY WARRANTY; without even the implied | |
11 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR | |
12 | PURPOSE. See the GNU General Public License for more details. | |
13 | ||
14 | */ | |
15 | ||
16 | package com.clustercontrol.performance.rrdtool.util; | |
17 | ||
18 | import java.util.ResourceBundle; | |
19 | ||
20 | /** | |
21 | * Hinemos Addon for RRDTool<br> | |
22 | * 設定ファイルに定義した?報を管?するクラス<br> | |
23 | * | |
24 | * @since 3.0.0 | |
25 | */ | |
26 | 1 | public class Config { |
27 | ||
28 | // 環??報 | |
29 | 1 | private static final ResourceBundle CONFIG = ResourceBundle.getBundle("config"); |
30 | ||
31 | // メ?セージ?報 | |
32 | 1 | private static final ResourceBundle MSG = ResourceBundle.getBundle("message"); |
33 | ||
34 | /** | |
35 | * 特定?環??報を取得する?? | |
36 | * | |
37 | * @param key | |
38 | * パラメータ? | |
39 | * @return 設定ファイルに記述された? | |
40 | */ | |
41 | public static String getConfig(String key) { | |
42 | 42 | return CONFIG.getString(key); |
43 | } | |
44 | ||
45 | /** | |
46 | * 特定?メ?セージ?報を取得する?? | |
47 | * | |
48 | * @param key | |
49 | * パラメータ? | |
50 | * @return 設定ファイルに記述された? | |
51 | */ | |
52 | public static String getMsg(String key) { | |
53 | 64 | return MSG.getString(key); |
54 | } | |
55 | } |
this report was generated by version @product.version@ of jcoverage. |
copyright © 2003, jcoverage ltd. all rights reserved. |