| |
|
| java.lang.Object org.igfay.jfig.JFigLocator
JFigLocator | public class JFigLocator implements JFigLocatorIF(Code) | | author: conrad4 author: Locate the intial Configuration file. Users may write their own author: implementation of JFigLocatorIF with their own scheme of finding the initial author: configuration file. author: Best method may be to subclass the JFig implementation. Then, initialize JFig author: via: getInstance(JFigLocatorIF), passing your implementation. |
getConfigDirectory | public String getConfigDirectory()(Code) | | Return the config directory. This directory is parsed from the initial
config.name that is set. It is not changed by subsequent config file names.
That enables subsequent file names to set their paths relative to the initial.
|
getConfigFileName | public String getConfigFileName()(Code) | | Return the config fileName. This will be the last file processed.
|
getConfigLocation | public String getConfigLocation() throws JFigException(Code) | | Return the config location; file or classpath If user specified
LOCATION_PROPERTY on the command line, use that. Otherwise, default to
CLASSPATH.
String |
getDefaultConfigFileName | public String getDefaultConfigFileName()(Code) | | Return a default config fileName. The filename will be the project name
and the machine name. This is used when no config. filename is passed as
an argument.
|
parseInitialFileName | protected void parseInitialFileName()(Code) | | Parse the directory name if one is specified.
This is only done on the initial file name.
That way, the initial directory name is saved for use on subsequent files.
|
setConfigDirectory | public void setConfigDirectory(String value)(Code) | | Set the configDirectory. Parsed from the initial config.file name
|
setConfigFileName | public void setConfigFileName(String value)(Code) | | |
|
|
|