ddd4j-kit
Installation
SKILL.md
ddd4j Kit
Overview
Prefer the stable utilities already shipped by ddd4j. Avoid duplicating them in business modules. Always confirm a tool's null handling, exception contract, type semantics, and thread safety before adopting it.
When to Use
- Finding an existing utility before writing a private one:
StrKit,CollKit,ArrayKit,IdKit,DateKit,ReflectKit. - Choosing the right
JsonKitmapper per scenario:DEFAULT_OBJECT_MAPPERfor ordinary JSON,REDIS_OBJECT_MAPPERfor trusted cache data,EventPayloadSerializerfor events. - Deciding between
BeanKitandMappingKitfor bean property handling, and where implicit copying is unsafe. - Verifying a utility's null handling, exception contract, and generics before adopting it.
- Working with the Jackson 2 / 3 boundary, including the
com.fasterxml.jackson.annotationcompatibility package. - Removing duplicate utility wrappers that Kit already provides.
When NOT to Use
Do not use this skill when: