https://github.com/col-e/javafx-access-agent
An agent to check if your calls are properly being made on the JavaFX application thread
https://github.com/col-e/javafx-access-agent
instrumentation javaagent javafx
Last synced: 2 months ago
JSON representation
An agent to check if your calls are properly being made on the JavaFX application thread
- Host: GitHub
- URL: https://github.com/col-e/javafx-access-agent
- Owner: Col-E
- License: mit
- Created: 2025-01-19T03:21:46.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2025-01-31T13:24:57.000Z (4 months ago)
- Last Synced: 2025-01-31T14:27:24.521Z (4 months ago)
- Topics: instrumentation, javaagent, javafx
- Language: Java
- Homepage:
- Size: 68.4 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JavaFX Thread Access Checking Agent
This agent instruments one or more packages to insert checks around calls to JavaFX methods.
These checks record if the call was made on the JavaFX application thread.
When a call is made off the JavaFX application thread any registered `AccessCheckListener` is notified.
You should register at least one listener via the `AccessCheck` class.## Usage
1. Add `javafx-access-agent` to your application's classpath
2. Add `javafx-access-agent` as a VM argument `-javaagent:javafx-access-agent.jar=com.example.myapp;org.example.library`
3. Register a `AccessCheckListener` in `AccessCheck` in your application to handle logging off-thread calls in your desired way
- You should do this in your application's `main` method, or at the earliest point of execution you have control over
4. Run your application