net.sf.taverna.raven.appconfig
Class ApplicationConfig
java.lang.Object
net.sf.taverna.raven.appconfig.ApplicationConfig
public class ApplicationConfig
- extends java.lang.Object
Represent the application config as it has been specified in
"raven-launcher.properties". This configuration specifies which application is to be
launched by Launcher, what is it's name
and title, etc.
An application built using Launcher
would typically provide the "raven-launcher.properties" file on the classpath under
a conf directory, or in a conf directory in the
application's distribution directory (assuming that ApplicationConfig
is loaded from a JAR-file placed in the directory lib below the
distribution directory).
- Author:
- Stian Soiland-Reyes
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNKNOWN_APPLICATION
public static final java.lang.String UNKNOWN_APPLICATION
PREFIX
public static final java.lang.String PREFIX
- See Also:
- Constant Field Values
APP_MAIN
public static final java.lang.String APP_MAIN
- See Also:
- Constant Field Values
APP_NAME
public static final java.lang.String APP_NAME
- See Also:
- Constant Field Values
APP_TITLE
public static final java.lang.String APP_TITLE
- See Also:
- Constant Field Values
APP_USER_HOME
public static final java.lang.String APP_USER_HOME
- See Also:
- Constant Field Values
APP_LOCAL_REPOSITORY
public static final java.lang.String APP_LOCAL_REPOSITORY
- See Also:
- Constant Field Values
APP_USING_RAVEN
public static final java.lang.String APP_USING_RAVEN
- See Also:
- Constant Field Values
PROPERTIES
public static final java.lang.String PROPERTIES
- See Also:
- Constant Field Values
getInstance
public static ApplicationConfig getInstance()
getMainClass
public java.lang.String getMainClass()
getName
public java.lang.String getName()
getProperties
public java.util.Properties getProperties()
getTitle
public java.lang.String getTitle()
getStartupDir
public java.io.File getStartupDir()
throws java.io.IOException
- Throws:
java.io.IOException
getStartupRoot
public java.net.URL getStartupRoot()
throws java.io.IOException
- Throws:
java.io.IOException
getApplicationHome
public java.lang.String getApplicationHome()
- Get the application's user home, if it has been preconfigured.
See ApplicationUserHome.getAppUserHome() that will also calculate
the user's home directory for most normal cases.
- Returns:
getLocalRavenRepository
public java.lang.String getLocalRavenRepository()
isUsingRaven
public boolean isUsingRaven()
isShowingSplashscreen
public boolean isShowingSplashscreen()