Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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