mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 21:15:56 +08:00
Refactor: rebuild libagent with simplified lifecycle
- Replace eventbus/services with Agent preload/init lifecycle - Move JNI header to shared includes; add jni_common.hpp umbrella header - Reduce ClassFileLoadHook to a stub for later implementation - Add eventpp dependency - Document custom API JAR workflow (WIP)
This commit is contained in:
1 parent
3b180e7199
commit
51bcfbd549
47 files changed
+5583
-1462
No files matched your search
@@ -0,0 +1,24 @@
|
||||
# Advanced
|
||||
|
||||
## Load Custom API / Directly Load Jar
|
||||
WARN: This feature didn't implement yet.
|
||||
|
||||
### Describe
|
||||
JuiceAgent loads custom JARs through the following workflow:
|
||||
|
||||
1. Inject `libloader` into the target process.
|
||||
2. Load **JuiceAgent-API** and execute its initialization entry point.
|
||||
3. Invoke the `JarLoader` from **JuiceAgent-API** to load the specified JAR into the JVM.
|
||||
|
||||
The second step is fully customizable. You can replace **JuiceAgent-API** with your own JAR and call any class method you specify.
|
||||
|
||||
### Configuration
|
||||
|
||||
Set the following environment variables before launching `libloader`:
|
||||
|
||||
```bat
|
||||
set JUICEAGENT_API_ENABLED=true
|
||||
set JUICEAGENT_API_JAR=<path-to-your-jar>
|
||||
set JUICEAGENT_API_CLASS=<target-class-name>
|
||||
set JUICEAGENT_API_METHOD=<target-method-name>
|
||||
```
|
||||
Reference in new issue
Block a user