com.googlecode.fascinator.common
Class FascinatorHome

java.lang.Object
  extended by com.googlecode.fascinator.common.FascinatorHome

public class FascinatorHome
extends Object

Manages the Fascinator home directory. Default Fascinator home directory: ${user.home}/.fascinator NOTE: ${user.home} in:

To change Fascinator home directory add FASCINATOR_HOME environment variable

Author:
Oliver Lucido

Field Summary
static String DEFAULT_PATH
          Default Fascinator home directory
static org.slf4j.Logger log
          Logging
static String SYSTEM_KEY
          System property key
 
Constructor Summary
FascinatorHome()
           
 
Method Summary
static String getPath()
          Gets the Fascinator home directory, which is used for configuration, storage, etc.
static String getPath(String subDir)
          Gets a relative directory inside the Fascinator home directory.
static File getPathFile()
          Gets the Fascinator home directory as a File object.
static File getPathFile(String subDir)
          Gets a relative directory inside the Fascinator home directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static org.slf4j.Logger log
Logging


SYSTEM_KEY

public static final String SYSTEM_KEY
System property key

See Also:
Constant Field Values

DEFAULT_PATH

public static final String DEFAULT_PATH
Default Fascinator home directory

Constructor Detail

FascinatorHome

public FascinatorHome()
Method Detail

getPath

public static String getPath()
Gets the Fascinator home directory, which is used for configuration, storage, etc. The directory can be set through the following:

Returns:
a directory path

getPath

public static String getPath(String subDir)
Gets a relative directory inside the Fascinator home directory.

Parameters:
subDir - the directory name
Returns:
a directory path

getPathFile

public static File getPathFile()
Gets the Fascinator home directory as a File object.

Returns:
a File representing the Fascinator home directory

getPathFile

public static File getPathFile(String subDir)
Gets a relative directory inside the Fascinator home directory.

Parameters:
subDir - the directory name
Returns:
a File representing the directory


Copyright © 2009-2012. All Rights Reserved.