- java.lang.Object
-
- aeonics.Plugin
-
- aeonics.Boot
-
public class Boot extends Plugin
This is the main entry point of the system
-
-
Field Summary
Fields Modifier and Type Field Description static long
BOOT_TIME
This is the JVM start time in ms.static java.lang.String
CREDITS
These are the author credits.static Boot
INSTANCE
This is the boot plugin instance.static java.lang.Thread
MAIN
This is the main thread of the application.static long
START_TIME
This is the first static initialization time in ms.static java.lang.String
VERSION
This is the current version of the system.
-
Constructor Summary
Constructors Constructor Description Boot()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
description()
Returns this plugin description.static void
main(java.lang.String[] args)
This is the main entry point of the systemstatic void
spark(java.lang.Runnable value)
Sets the system spark function to trigger the application start once all plugins are loaed.protected void
start()
This method will be called by the lifecycle manager after all required dependencies are met.java.lang.String
summary()
Returns this plugin summary.-
Methods inherited from class aeonics.Plugin
all, getModuleLayer, initialize, name
-
-
-
-
Field Detail
-
START_TIME
public static final long START_TIME
This is the first static initialization time in ms. It means that the JVM has booted and loaded theBoot
class.
-
BOOT_TIME
public static final long BOOT_TIME
This is the JVM start time in ms.
-
VERSION
public static final java.lang.String VERSION
This is the current version of the system.- See Also:
- Constant Field Values
-
MAIN
public static final java.lang.Thread MAIN
This is the main thread of the application.
-
INSTANCE
public static final Boot INSTANCE
This is the boot plugin instance.
-
CREDITS
public static final java.lang.String CREDITS
These are the author credits. This must remain untouched and appear at application start.- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
This is the main entry point of the system- Parameters:
args
- command line arguments
-
spark
public static void spark(java.lang.Runnable value)
Sets the system spark function to trigger the application start once all plugins are loaed.First come, first served. Only one spark function is allowed.
When the spark function returns, the system shuts down.
- Parameters:
value
- the system spark function
-
summary
public java.lang.String summary()
Description copied from class:Plugin
Returns this plugin summary.
-
description
public java.lang.String description()
Description copied from class:Plugin
Returns this plugin description.- Specified by:
description
in classPlugin
- Returns:
- the plugin description
-
-