Library samples
Each linked repository owns its sample source and instructions. Browse by use case below, then follow the linked repository README for package preparation and commands. Some examples require locally built development packages; the library sample setup explains the shared prerequisites. Short lessons cover JSON roundtrips, file I/O, file failures, and Commons Lang first use.
Text and documents
| Library | Use case | Samples |
|---|---|---|
| commons-lang | Normalize and transform text | Samples |
| commons-io | File operations and revision comparison | Samples |
| jsoup-jsoup | Select links and clean HTML | Samples |
Data and collections
| Library | Use case | Samples |
|---|---|---|
| org-json | Parse and update JSON objects | Samples |
| joda-time | Calculate dates across calendar boundaries | Samples |
| fastutil-collections | Count with primitive collections | Samples |
| eclipse-collections | Filter and aggregate collections | Samples |
| guava-core | Split and join text collections | Samples |
| caffeine-cache | Bounded caching and invalidation | Samples |
Applications and integration
| Library | Use case | Samples |
|---|---|---|
| di | Assemble injected services | Samples |
| junit-jupiter | Run a JUnit-backed Norm test | Samples |
| micronaut-test | Test a Micronaut context and injected replacement | Samples |
| micronaut-aop | Intercept a service call | Samples |
| micronaut-serde-jackson | Serialize a typed message | Samples |
| micronaut-validation | Validate invalid input | Samples |
| micronaut-views-jstachio | Render an HTML template | Samples |
| orm | Save, find, and update an H2 entity | Samples |
| micronaut-data-jdbc | Insert and query H2 records through a repository | Samples |
| reactor-core | Transform a finite reactive stream | Samples |
| ui | Create a counter window | Samples |
The UI counter needs a graphical session. Follow its sample guide for dependencies and the run command.
HTTP and agents
| Library | Use case | Samples |
|---|---|---|
| micronaut-web | Serve local HTTP routes and forms | Samples |
| micronaut-websocket | Exchange a loopback WebSocket message | Samples |
| micronaut-security | Compare allowed and rejected anonymous requests | Samples |
| micronaut-http-client | Call a local HTTP service | Samples |
| micronaut-management | Query a health endpoint | Samples |
| okhttp-client | Call a local HTTP fixture | Samples |
| openai | Call a local OpenAI-compatible fixture and dispatch tools | Samples |
The complete GUI Todo and Web guestbook are generated by norm hello.