public class Launcher extends 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 String |
andamiConfigPath |
protected static String |
appHomeDir |
protected static String |
appName |
protected static String |
CASTORENCODING |
protected static HashMap<Class<? extends IExtension>,ExtensionDecorator> |
classesExtensions |
protected static List<IExtension> |
extensions |
protected static MDIFrame |
frame |
protected static ListBaseException |
launcherrors |
protected static Locale |
locale |
protected static Logger |
logger |
protected static String |
nonWinDefaultLookAndFeel |
protected static Launcher.PluginsConfig |
pluginsConfig |
protected static List<String> |
pluginsOrdered |
protected static Launcher.PluginsServices |
pluginsServices |
protected static Preferences |
prefs |
protected static MultiSplashWindow |
splashWindow |
protected static Theme |
theme |
Constructor and Description |
---|
Launcher() |
Modifier and Type | Method and Description |
---|---|
protected void |
addError(String msg) |
protected void |
addError(String msg,
Throwable cause) |
protected void |
addError(Throwable ex) |
static void |
closeApplication()
Gracefully closes the application.
|
void |
doMain(String[] args) |
protected void |
downloadExtensions(String extDir) |
static AndamiConfig |
getAndamiConfig() |
static String |
getAppHomeDir()
Gets Home Directory location of the application into users home folder.
|
static String |
getApplicationDirectory()
Return the directory applicaction is installed.
|
static File |
getApplicationFolder() |
static File |
getApplicationHomeFolder() |
static String |
getApplicationName() |
static String |
getDefaultLookAndFeel() |
static Extension |
getExtension(String s) |
static Iterator |
getExtensionIterator() |
static String |
getInformation() |
static String |
getInformation(PackageInfo[] pkgs) |
static Launcher |
getInstance() |
static HashMap |
getPluginConfig() |
List<Launcher.PluginMenuItem> |
getPluginMenuItems() |
static PluginServices |
getPluginServices(String name) |
static Launcher.TerminationProcess |
getTerminationProcess() |
static void |
initIconThemes() |
static void |
main(String[] args) |
static void |
manageUnsavedData(String prompt) |
static void |
setAppHomeDir(String appHomeDir)
Sets Home Directory location of the application.
|
protected static Logger logger
protected static Preferences prefs
protected static AndamiConfig andamiConfig
protected static MultiSplashWindow splashWindow
protected static String appName
protected static Locale locale
protected static Launcher.PluginsConfig pluginsConfig
protected static Launcher.PluginsServices pluginsServices
protected static MDIFrame frame
protected static HashMap<Class<? extends IExtension>,ExtensionDecorator> classesExtensions
protected static String andamiConfigPath
protected static final String nonWinDefaultLookAndFeel
protected static List<IExtension> extensions
protected static String appHomeDir
protected static final String CASTORENCODING
protected static ListBaseException launcherrors
protected static Theme theme
public static Launcher getInstance()
protected void downloadExtensions(String extDir)
protected void addError(Throwable ex)
protected void addError(String msg)
public static String getApplicationName()
public static String getApplicationDirectory()
public static File getApplicationFolder()
public List<Launcher.PluginMenuItem> getPluginMenuItems()
public static PluginServices getPluginServices(String name)
public static void closeApplication()
public static Iterator getExtensionIterator()
public static HashMap getPluginConfig()
public static AndamiConfig getAndamiConfig()
public static String getDefaultLookAndFeel()
public static String getAppHomeDir()
public static File getApplicationHomeFolder()
public static void setAppHomeDir(String appHomeDir)
appHomeDir
- public static void initIconThemes()
public static void manageUnsavedData(String prompt) throws Exception
Exception
public static Launcher.TerminationProcess getTerminationProcess()
public static String getInformation()
public static String getInformation(PackageInfo[] pkgs)