-
Notifications
You must be signed in to change notification settings - Fork 2
Code Structure
Karl "Khazrak" Andersson edited this page Jun 15, 2017
·
1 revision
This document is about JDockers internal code structure.
JDocker tries to bind 1-to-1 of Class to Json-object from https://docs.docker.com/engine/api/v1.29/
JDocker also uses Immutables and Builder-pattern as far as it can.
This means that it's VERY verbose in all the calls to Docker, most needing 1 to N objects created and sent.
To make Container-creation easier (since thats the most you use Docker for, except starting, stopping, logs) JDocker has a wrapper-class called EasyContainer
Jackson is used to map to and from JSON. JsonIgnore is not used since it's easier to find and implement new fields if it crashes and tells ous what value is new.