Class: AxiSparkCore
A class representing the core of the Axispark framework. It implements the Lifecycle interface, which includes methods for initialization, running, and destruction of the application. The AxiSparkCore class manages the lifecycle of the application, including initializing the context, running the application, and handling shutdown signals.
The AxiSparkCore class provides methods to register plugins, retrieve used plugins, and resolve dependencies from the dependency injection container. It serves as the main entry point for managing the application's lifecycle and coordinating various components and services within the Axispark framework.
Implements
Constructors
Constructor
new AxiSparkCore(
axisparkContext):AxiSparkCore
Parameters
axisparkContext
Returns
AxiSparkCore
Accessors
config
Get Signature
get config():
AxiSparkConfig
Returns
Methods
destroy()
destroy():
Promise<void>
Returns
Promise<void>
Implementation of
get()
get<
T>(token):Promise<T>
Type Parameters
T
T
Parameters
token
Token<T>
Returns
Promise<T>
init()
init():
Promise<void>
Returns
Promise<void>
Implementation of
run()
run():
Promise<void>
Returns
Promise<void>
Implementation of
use()
use(
plugin,options?):this
Parameters
plugin
options?
Returns
this
used()
used(): readonly
object[]
Returns
readonly object[]