public class ApplicationHome
extends java.lang.Object
Constructor and Description |
---|
ApplicationHome()
Create a new
ApplicationHome instance. |
ApplicationHome(java.lang.Class<?> sourceClass)
Create a new
ApplicationHome instance for the specified source class. |
Modifier and Type | Method and Description |
---|---|
java.io.File |
getDir()
Returns the application home directory.
|
java.io.File |
getSource()
Returns the underlying source used to find the home directory.
|
java.lang.String |
toString() |
public ApplicationHome()
ApplicationHome
instance.public ApplicationHome(java.lang.Class<?> sourceClass)
ApplicationHome
instance for the specified source class.sourceClass
- the source class or null
public java.io.File getSource()
null
if the source cannot be
determined.null
public java.io.File getDir()
null
)public java.lang.String toString()
toString
in class java.lang.Object