com.atlassian.config
Class DefaultHomeLocator

java.lang.Object
  extended by 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.


Constructor Summary
DefaultHomeLocator()
           
 
Method Summary
 java.lang.String getConfigFileName()
           
 java.lang.String getHomePath()
          Use this method to try to get the home variable.
 java.lang.String getPropertiesFile()
           
 void lookupServletHomeProperty(javax.servlet.ServletContext context)
           
 void setConfigFileName(java.lang.String configFileName)
           
 void setInitPropertyName(java.lang.String initPropertyName)
           
 void setPropertiesFile(java.lang.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 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):

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.