Refactor: migrate config to v2 format across examples and libagent

- examples: update config.toml to the v2 schema ([JarLoader] with Mode / InjectionDir / JarPath / EntryClass / EntryMethod) for inject-via-java-api, load-via-injector-exe and retransform-class

- libagent: read JarLoader.* instead of JuiceAgent.Modules.JarLoader.*, use Config::isValid() and the new get()/getPath() accessors

- libagent: rename call_java_impl to call_static_java_method
This commit is contained in:
xiaozhou233 committed 2026-10-14 21:21:02 +08:00
1 parent eb7fd31817
commit f38a28e8b3
5 files changed
+47 -57

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ namespace JuiceAgent {
} else {
JuiceAgent::Config::Config cfg(runtime_dir);
setConfig(cfg);
if(!getConfig().is_valid()) {
if(!getConfig().isValid()) {
spdlog::warn("[JuiceAgent] Config is not valid!");
spdlog::warn("[JuiceAgent] No config provided, Modules will not be loaded!");
}