Package com.tccc.kos.core.service.app
Class AppLoader
java.lang.Object
com.tccc.kos.core.service.app.AppLoader
Class responsible for loading an application from the filesystem.
- Since:
- 1.0
- Version:
- 2023-01-03
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLocalization
(ResolvedManifestSection section) Add all localization kabs from the specified section to the localization context.void
addUiPlugin
(KabFile kab) Add the specified KAB to the ui plugin context and localization context.void
addUiPlugins
(ResolvedManifestSection section) Add all KAB's from the specified section to the ui plugin context and the localization context.Application<?>
getApp()
Returns the application that this loader loaded.Return the application directory.getAppId()
Returns the appId from the descriptor.getKab()
Return the kab the application was loaded from.Return the section the application was loaded from.Return the name of the section the app was loaded from.boolean
boolean
boolean
void
start()
Start the application.
-
Constructor Details
-
AppLoader
public AppLoader()
-
-
Method Details
-
getAppId
Returns the appId from the descriptor. -
getApp
Returns the application that this loader loaded. -
getAppDir
Return the application directory. -
getSectionName
Return the name of the section the app was loaded from. -
getKab
Return the kab the application was loaded from. -
getSection
Return the section the application was loaded from. -
start
public void start()Start the application. When theAppLoader
is returned fromAppService
the application class has already been created and loaded via theAplication.load()
callback. Whenstart()
is called, the application is configured and autowired before callingApplication.start()
which notifies the application that it is fully configured and can continue the start process. -
addLocalization
Add all localization kabs from the specified section to the localization context. -
addUiPlugin
Add the specified KAB to the ui plugin context and localization context. -
addUiPlugins
Add all KAB's from the specified section to the ui plugin context and the localization context. -
getManifestService
-
isStarted
public boolean isStarted() -
isPostStarted
public boolean isPostStarted() -
isStopped
public boolean isStopped() -
getUrlPrefix
-
getBrokerPrefix
-
getAppBroker
-
getLocalization
-
getUiPluginCtx
-