Package com.tccc.kos.core.service.app
package com.tccc.kos.core.service.app
This package provides the core application framework for KOS, including application lifecycle management,
dynamic loading capabilities, and messaging infrastructure.
Core Components
Application Foundation
The abstractApplication
class serves as the starting point for all KOS applications, providing:
- Access to core KOS services (MessageBroker, VFS, BeanContext)
- Configuration management and database migration support
- Lifecycle hooks for initialization and cleanup
- Browser intent handling and routing capabilities
SystemApplication
extends this foundation with additional methods
to access the device, assembly, and region services.
Dynamic Application Management
TheAppService
provides comprehensive application lifecycle management:
- Dynamic loading and unloading of applications from KAB files
- Event notifications for application state changes
AppLoader
implementations, with LoadableApp
representing
applications that can be dynamically managed by the system.
Event System
The package provides event-driven application management through:AppListener
- Interface for receiving application lifecycle eventsAppStartedCallback
- Callback for application startup completion- Integration with the core message broker system
Messaging Infrastructure
TheAppMessageBroker
provides application-scoped messaging by automatically prefixing
topics with the application ID, enabling isolated communication channels for each application
while maintaining access to the global message broker.- Since:
- 1.0
- Version:
- 2025-01-21
- See Also:
-
ClassDescriptionA subclass of
BrowserIntent
that generates an intent that is targeted at a specific application.Application<T extends BaseAppConfig>Base class for all KOS applications.Listener for Application-related events.Class responsible for loading an application from the filesystem.Wrapper for the system message broker that prefixes the topics with the application id.Service that manages applications within KOS.Callback forAppService.whenAppStarted()
.Base class for application configuration beans.Information about a manifest section that has a "kos.autostart." prefix.SystemApplication<T extends BaseAppConfig>Base class for system applications, which simply adds convenience methods to the baseApplication
type.