feat: Implement module registration and loading functionality

This commit is contained in:
xiaozhou233 committed 2026-04-21 18:34:32 +08:00
1 parent 79ae4b62a3
commit e1577d4fae
5 files changed
+78 -3

No files matched your search

+9
View File
@@ -84,4 +84,13 @@ void JarLoaderModule::stop() {
_running = false;
}
} // namespace JuiceAgent::Core::Modules
namespace {
bool registerJarLoader = []() {
JuiceAgent::Core::Modules::ModuleRegistry::registerModule("JarLoader", []() {
return std::make_unique<JuiceAgent::Core::Modules::JarLoaderModule>();
});
return true;
}();
}