com.atlassian.config
Class DefaultHomeLocator

java.lang.Object
  extended by com.atlassian.config.DefaultHomeLocator
All Implemented Interfaces:
HomeLocator

public class DefaultHomeLocator
extends Object
implements HomeLocator

A simple strategy bean to locate the application home directory.


Constructor Summary
DefaultHomeLocator()
           
 
Method Summary
 String getConfigFileName()
           
 String getHomePath()
          Use this method to try to get the home variable.
 String getPropertiesFile()
           
 void lookupServletHomeProperty(javax.servlet.ServletContext context)
           
 void setConfigFileName(String configFileName)
           
 void setInitPropertyName(String initPropertyName)
           
 void setPropertiesFile(String propertiesFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHomeLocator

public DefaultHomeLocator()
Method Detail

getHomePath

public String getHomePath()
Use this method to try to get the home variable.

This method looks for the variable in the following places (in order):

Specified by:
getHomePath in interface HomeLocator
Returns:

getConfigFileName

public String getConfigFileName()
Specified by:
getConfigFileName in interface HomeLocator

setConfigFileName

public void setConfigFileName(String configFileName)

getPropertiesFile

public String getPropertiesFile()

setPropertiesFile

public void setPropertiesFile(String propertiesFile)

setInitPropertyName

public void setInitPropertyName(String initPropertyName)

lookupServletHomeProperty

public void lookupServletHomeProperty(javax.servlet.ServletContext context)
Specified by:
lookupServletHomeProperty in interface HomeLocator


Atlassian Config is developed by Atlassian Software Systems.