What problem does it solve?
Dynamically load and manage Java JAR libraries in a running ColdBox application so developers can instantiate Java classes and use Java libraries without restarting the CFML server, while controlling reload behavior between development and production.
Core Features & Use Cases
- Dynamic JAR loading with configurable load paths to keep libraries organized and versioned.
- Classloader management and reloadOnEveryRequest toggling to enable fast development loops and safe production behavior.
- WireBox-compatible injection for a singleton javaloader and simple creation/initialization of Java objects for common tasks.
- Typical use cases include PDF processing with iText/OpenPDF, spreadsheet handling with Apache POI, image manipulation via Java imaging APIs, and using Apache HttpClient for advanced HTTP interactions.
Quick Start
Use cbjavaloader to load JARs from your project's lib folder, set reloadOnEveryRequest for development, inject the javaloader, and instantiate the Java class you need to perform processing.