Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 10 hours 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 (6 days ago)
- Default Branch: master
- Last Pushed: 2025-01-19T03:46:31.000Z (6 days ago)
- Last Synced: 2025-01-19T04:28:58.947Z (6 days ago)
- Topics: instrumentation, javaagent, javafx
- Language: Java
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- 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