public class AppInfo
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AppInfo.AnnotationAppInfoProvider |
static interface |
AppInfo.AppInfoProvider |
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
appName |
private static java.lang.String |
appTitle |
private static Version |
appVersion |
private static java.lang.Class<?> |
mainClass |
private static AppInfo.AppInfoProvider |
provider |
Constructor and Description |
---|
AppInfo() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getAppName() |
static java.lang.String |
getAppTitle() |
static Version |
getAppVersion() |
static java.lang.Class<?> |
getMainClass() |
static AppInfo.AppInfoProvider |
getProvider()
Attempts to get the AppInfoProvider that has been registered for this application.
|
static void |
setAppName(java.lang.String name) |
static void |
setAppTitle(java.lang.String title) |
static void |
setMainClass(java.lang.Class<?> c) |
static void |
setProvider(AppInfo.AppInfoProvider p) |
private static java.lang.String appName
private static java.lang.String appTitle
private static Version appVersion
private static java.lang.Class<?> mainClass
private static AppInfo.AppInfoProvider provider
@NotNull public static java.lang.String getAppName()
@NotNull public static java.lang.String getAppTitle()
public static java.lang.Class<?> getMainClass()
@NotNull public static AppInfo.AppInfoProvider getProvider()
getAppInfo()
on the
application's main class (if it exists).
Otherwise a default AppInfoProvider is created and returned. This default provides no valuable information,
so it is suggested that each application registers its own AppInfoProvider in main().public static void setAppName(java.lang.String name)
public static void setAppTitle(java.lang.String title)
public static void setMainClass(java.lang.Class<?> c)
public static void setProvider(AppInfo.AppInfoProvider p)