kutils - dependency injection, event bus, arg parsing, home folder ...

kutils is my ongoing collection of useful simple implementations of problems for recurring tasks. Written for Kotlin, but maybe also work with other JVM languages.

Useful classes:

  • DefaultInjektor - simple dependency injection, supports singletons and factories
  • DefaultEventBus - subscribe to a bus and post events
  • XmlExtensions - dsl for xml streaming
  • Resources - work with resources within running jar
  • Async - task and awaitAll helpers for CompletableFuture’s
  • Paths - convenient OO extensions for the static java.nio.file api
  • ApplicationHome - tool home folder and properties support
  • ArgParser and Args - simple command argument parsing