mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 13:05:53 +08:00
feat: Implement module registration and loading functionality
This commit is contained in:
1 parent
79ae4b62a3
commit
e1577d4fae
5 files changed
+78
-3
No files matched your search
@@ -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;
|
||||
}();
|
||||
}
|
||||
Reference in new issue
Block a user