symplik.flower
Class FlowerProp

java.lang.Object
  extended by symplik.flower.FlowerProp
All Implemented Interfaces:
Constants

public class FlowerProp
extends java.lang.Object
implements Constants

Singleton class to read flower.properties file

Version:
$Revision: 2 $
Author:
$Author: Christopher Ho $

Field Summary
private static FlowerProp flowerProp
           
private  java.util.Properties prop
           
static java.lang.String RCS_ID
           
 
Fields inherited from interface symplik.flower.Constants
CLASS_DEFAULT_START, CLASS_DIR_BROWSER, CLASS_FILE_BROWSER, DISPLAY_MODE, DISPLAY_MODE_CONSOLE, DISPLAY_MODE_GUI, DISPLAY_MODE_SLIENT, FILE_BROWSER_CURR_DIR, FILE_BROWSER_DIR, FILE_BROWSER_FILE, FLOWER_CONFIG, FLOWER_CONFIG_FILE, FLOWER_LAST_QUESTION, FLOWER_LOG_FILE, FLOWER_LOG_LEVEL, FLOWER_LOG_OUTPUT, FLOWER_RESPONSES, FLOWER_RESPONSES_FILE, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_OUTPUT_FILE, LOG_OUTPUT_SYSTEM_OUT, LOG_WARN, SORT_AS_IS, SORT_BY_DESC, SORT_BY_DESC_CI, SORT_BY_KEY, SORT_BY_KEY_CI
 
Constructor Summary
protected FlowerProp()
          Constructor to load flower.properties file
 
Method Summary
 java.lang.String get(java.lang.String key)
          get properties value by key in flower.properties
static FlowerProp instance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RCS_ID

public static final java.lang.String RCS_ID
See Also:
Constant Field Values

flowerProp

private static FlowerProp flowerProp

prop

private java.util.Properties prop
Constructor Detail

FlowerProp

protected FlowerProp()
Constructor to load flower.properties file

Method Detail

instance

public static FlowerProp instance()
Returns:
FlowerProp instance

get

public java.lang.String get(java.lang.String key)
get properties value by key in flower.properties

Parameters:
key -
Returns:
properties value


Copyright © 2010 Symplik Tech. Co. Ltd. All Rights Reserved.