# NeitzelLib Maven Project ## A Java Utilities Library This repository is **not** a production-ready library, but rather a personal collection of small helpers, utilities, and ideas that I find useful or interesting as a Java developer. It serves primarily as a **knowledge base** and **inspiration pool** for my own development work. You're welcome to explore, copy, modify, or improve whatever you find helpful. > ⚠️ Use at your own discretion — no guarantees of stability, backwards compatibility, or completeness. --- ## License This is free and unencumbered software released into the public domain. Please see the [License](LICENSE.md) for details. --- ## Note on Content The content of this repository — including source code, documentation, and examples — was partially created with the assistance of ChatGPT (an AI model by OpenAI). The generated content has been reviewed, edited, and integrated into the overall context by me. Responsibility for all content lies entirely with me. Any generated content is subject to [OpenAI’s Terms of Use](https://openai.com/policies/terms-of-use) and is — where possible — either in the public domain or usable under a license compatible with this project's license. ## Components ### core Core utilities, including [foreground desktop observations](core/docs/foreground-detection.md) using JNA for optional native desktop integration, and [native application configuration folders](core/docs/application-directories.md). ### encryption Some encryption classes that use format-preserving-encryption. **Important** This is not for production use! Please use secure encryption in production! ### fx JavaFX library that binds an FXML view to an ordinary Java model. See [fx/README.md](fx/README.md). ### injection Package scanner and type-based container used by `fx`. See [injection/README.md](injection/README.md). ### fx-example Person desk that shows how to use `fx` and `injection`. Build with `./mvnw -pl fx-example -am install`, then run `./mvnw -f fx-example/pom.xml javafx:run`. See [fx-example/README.md](fx-example/README.md). ### gson TypeAdapter for gson. ### log4j Stuff for log4j (Version 1). Please use log4j2 if you want to use log4j! (Or log with slf4j as I do in all other modules!) ### net Some network stuff using javax.mail as dependency. ### quarkus Some additions for quarkus that might be useful. ## Start a JavaFX project The [complete quick start](fx/docs/quick-start.md) includes local snapshot installation, a standalone Maven POM, Java classes, FXML and launch commands. Continue with [MVVM and runtime architecture](fx/docs/architecture.md), the [FXML reference](fx/README.md), and the [person desk walkthrough](fx-example/README.md). The [injection guide](injection/README.md) also covers use without JavaFX. Build with Java 25. Maven wrapper version is 3.9.11; the project requires Maven 3.9.11 or later. Library version `1.0-SNAPSHOT` denotes development artifacts, not a published stable release. Surefire fails the build if tests fail. ## Java source conventions Use focused Lombok annotations for mechanical accessors, constructors and logging; see [the contributor instructions](AGENTS.md). The parent already configures Lombok 1.18.48 as a provided dependency and an explicit annotation processor. It is not required at runtime. Each checkout has a `lombok.config` boundary so workstation-level settings cannot silently change generated APIs. Keep behavior-bearing methods and JavaFX property operations explicit. Records remain records, and identity-based Models do not acquire generated equality. The [Person desk example](fx-example/README.md) demonstrates Lombok JavaBeans and constructor injection while retaining ordinary JavaBean APIs. API documentation runs Lombok's [delombok](https://projectlombok.org/features/delombok) step at `process-classes` and reads `target/delombok`, including generated methods. The plugin uses the same `${lombok.version}` as compilation; its output is not added to the compiler source roots. Run `verify` (or at least `process-classes`) before invoking standalone Javadoc/site reporting.