Show HN: JavaFactory – IntelliJ plugin to generate Java code
Published on: 2025-07-01 23:29:45
short20s.mp4
JavaFactory
JavaFactory is a tool that uses LLMs to automatically generate repetitive Java code. It produces results that are more predictable and stable than those of traditional AI code generators. JavaFactory operates based on two core components:
Pattern Definition: Define each unit of work in natural language (e.g., test generation, implementation generation, etc.)
Annotation-Based Reference Collection: Explicitly specify the required classes using annotations.
Once defined, these patterns can be reused repeatedly to generate various types of code — such as implementations, tests, and fixtures.
Demo: 400 Lines in 20s. All tests passed
The following demo shows an example where 400 lines of code were generated, and all tests passed:
Key Features
1. Define units of work as patterns
Repetitive tasks can be defined as a single pattern. A pattern clearly specifies what to generate, how to generate it, and which classes to reference.
A pattern consists of two main
... Read full article.