public class Launcher
extends java.lang.Object
Andami's launching class. This is the class used to create the Andami's
plugin environment.
Syntax:
java [-Xmx512M (for 512MB of RAM)] [-classpath={a colon-separated(unix) or
semicolon-separated(windows) list of files containg base library of classes}]
[-Djava.library.path=PATH_TO_NATIVE_LIBRARIES]
PATH_TO_APPLICATION_HOME_DIRECTORY PATH_TO_APPLICATION_PLUGINS_DIRECTORY
[{list of additional custom application arguments separated by spaces}]
Modifier and Type | Class and Description |
---|---|
static class |
Launcher.LaunchException |
static class |
Launcher.MapWithAlias<Item> |
class |
Launcher.PluginMenuItem |
static class |
Launcher.PluginsConfig |
static class |
Launcher.PluginsServices |
class |
Launcher.TerminationProcess
Manages Andami termination process
|
Modifier and Type | Field and Description |
---|---|
protected static AndamiConfig |
andamiConfig |
protected static java.lang.String |
andamiConfigPath |
protected static java.lang.String |
appHomeDir |
protected static java.lang.String |
appName |
protected static java.lang.String |
CASTORENCODING |
protected static java.util.HashMap<java.lang.Class<? extends IExtension>,ExtensionDecorator> |
classesExtensions |
protected static java.lang.String |
DEFAULT_ICON_THEME_NAME |
protected static java.util.List<IExtension> |
extensions |
protected static MDIFrame |
frame |
protected static ListBaseException |
launcherrors |
protected static java.util.Locale |
locale |
protected static Logger |
logger |
protected static java.lang.String |
nonWinDefaultLookAndFeel |
protected static Launcher.PluginsConfig |
pluginsConfig |
protected static java.util.List<java.lang.String> |
pluginsOrdered |
protected static Launcher.PluginsServices |
pluginsServices |
protected static java.util.prefs.Preferences |
prefs |
protected static MultiSplashWindow |
splashWindow |
protected static Theme |
theme |
Constructor and Description |
---|
Launcher() |
Modifier and Type | Method and Description |
---|---|
protected void |
addError(java.lang.String msg) |
protected void |
addError(java.lang.String msg,
java.lang.Throwable cause) |
protected void |
addError(java.lang.Throwable ex) |
static void |
closeApplication()
Gracefully closes the application.
|
static void |
closeApplication(boolean quietly) |
void |
doMain(java.lang.String[] args) |
protected void |
downloadExtensions(java.lang.String extDir) |
static AndamiConfig |
getAndamiConfig() |
static java.lang.String |
getAppHomeDir()
Gets Home Directory location of the application into users home folder.
|
static java.lang.String |
getApplicationDirectory()
Return the directory applicaction is installed.
|
static java.io.File |
getApplicationFolder() |
static java.io.File |
getApplicationHomeFolder() |
static java.lang.String |
getApplicationName() |
static Arguments |
getArguments() |
static java.lang.String |
getDefaultLookAndFeel() |
static Extension |
getExtension(java.lang.String s) |
static IExtension |
getExtensionByName(java.lang.String extensionName) |
static java.util.Iterator |
getExtensionIterator() |
static java.lang.String |
getInformation() |
static java.lang.String |
getInformation(PackageInfo[] pkgs) |
static Launcher |
getInstance() |
static java.util.HashMap |
getPluginConfig() |
java.util.List<Launcher.PluginMenuItem> |
getPluginMenuItems() |
static PluginServices |
getPluginServices(java.lang.String name) |
static Launcher.TerminationProcess |
getTerminationProcess() |
static void |
initIconThemes() |
static void |
main(java.lang.String[] args) |
static void |
manageUnsavedData(java.lang.String prompt) |
static void |
setAppHomeDir(java.lang.String appHomeDir)
Sets Home Directory location of the application.
|
protected static Logger logger
protected static java.util.prefs.Preferences prefs
protected static AndamiConfig andamiConfig
protected static MultiSplashWindow splashWindow
protected static java.lang.String appName
protected static java.util.Locale locale
protected static Launcher.PluginsConfig pluginsConfig
protected static Launcher.PluginsServices pluginsServices
protected static MDIFrame frame
protected static java.util.HashMap<java.lang.Class<? extends IExtension>,ExtensionDecorator> classesExtensions
protected static java.lang.String andamiConfigPath
protected static final java.lang.String nonWinDefaultLookAndFeel
protected static final java.lang.String DEFAULT_ICON_THEME_NAME
protected static java.util.List<java.lang.String> pluginsOrdered
protected static java.util.List<IExtension> extensions
protected static java.lang.String appHomeDir
protected static final java.lang.String CASTORENCODING
protected static ListBaseException launcherrors
protected static Theme theme
public static Launcher getInstance()
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
protected void downloadExtensions(java.lang.String extDir)
protected void addError(java.lang.Throwable ex)
protected void addError(java.lang.String msg, java.lang.Throwable cause)
protected void addError(java.lang.String msg)
public static Arguments getArguments()
public void doMain(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getApplicationName()
public static java.lang.String getApplicationDirectory()
public static java.io.File getApplicationFolder()
public java.util.List<Launcher.PluginMenuItem> getPluginMenuItems()
public static PluginServices getPluginServices(java.lang.String name)
public static void closeApplication()
public static void closeApplication(boolean quietly)
public static IExtension getExtensionByName(java.lang.String extensionName)
public static java.util.Iterator getExtensionIterator()
public static java.util.HashMap getPluginConfig()
public static Extension getExtension(java.lang.String s)
public static AndamiConfig getAndamiConfig()
public static java.lang.String getDefaultLookAndFeel()
public static java.lang.String getAppHomeDir()
public static java.io.File getApplicationHomeFolder()
public static void setAppHomeDir(java.lang.String appHomeDir)
appHomeDir
- public static void initIconThemes()
public static void manageUnsavedData(java.lang.String prompt) throws java.lang.Exception
java.lang.Exception
public static Launcher.TerminationProcess getTerminationProcess()
public static java.lang.String getInformation()
public static java.lang.String getInformation(PackageInfo[] pkgs)