com.atlassian.config
Class DefaultHomeLocator
java.lang.Object
com.atlassian.config.DefaultHomeLocator
- All Implemented Interfaces:
- HomeLocator
public class DefaultHomeLocator
- extends java.lang.Object
- implements HomeLocator
A simple strategy bean to locate the application home directory.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultHomeLocator
public DefaultHomeLocator()
getHomePath
public java.lang.String getHomePath()
- Use this method to try to get the home variable.
This method looks for the variable in the following places (in order):
- System property
- properties file
- Servlet context init param
- Specified by:
getHomePath
in interface HomeLocator
- Returns:
getConfigFileName
public java.lang.String getConfigFileName()
- Specified by:
getConfigFileName
in interface HomeLocator
setConfigFileName
public void setConfigFileName(java.lang.String configFileName)
getPropertiesFile
public java.lang.String getPropertiesFile()
setPropertiesFile
public void setPropertiesFile(java.lang.String propertiesFile)
setInitPropertyName
public void setInitPropertyName(java.lang.String initPropertyName)
lookupServletHomeProperty
public void lookupServletHomeProperty(javax.servlet.ServletContext context)
- Specified by:
lookupServletHomeProperty
in interface HomeLocator
Copyright © 2006-2008 Atlassian Pty Ltd. All Rights Reserved.