package Ġio . tool ist icon . addons . ax on . map db Ċ Ċ import Ġio . tool ist icon . addons . ax on . examples . gift card . api . Gift card Command .* Ċ import Ġio . tool ist icon . addons . ax on . examples . gift card . api . Gift card Query .* Ċ import Ġio . tool ist icon . addons . ax on . examples . gift card . domain . Gift card Aggregate Ċ import Ġio . tool ist icon . addons . ax on . examples . gift card . projection . Gift card Summary Ċ import Ġio . tool ist icon . addons . ax on . map db . event store . Map Db Event Storage Engine Ċ import Ġorg . ax on framework . config . Default Configurer Ċ import Ġorg . ax on framework . events ourcing . event store . Embedded Event Store Ċ import Ġorg . ax on framework . messaging . respon set ypes . Response Types Ċ import Ġorg . map db . DB Maker ĊĊĊ Ċ fun Ġmain () Ġ{ ĊĠ Ġval Ġtmp Ġ= Ġcreate TempFile (" ax on ", Ġ" db ") ĊĊĠ Ġval Ġdb Ġ= ĠDB Maker . file DB ( tmp . absolute File ). close On Jvm Shutdown (). make () ĊĠ Ġval Ġstorage Engine Ġ= ĠMap Db Event Storage Engine ( db ) ĊĠ Ġval Ġevent Store Ġ= ĠEmbedded Event Store . builder () ĊĠĠĠ Ġ. storage Engine ( storage Engine ) ĊĠĠĠ Ġ. build () ĊĊĠ Ġval Ġax on Configuration Ġ= ĠDefault Configurer . default Configuration () ĊĠĠĠ Ġ. configure Aggregate ( Gift card Aggregate :: class . java ) ĊĠĠĠ Ġ. configure Event Store Ġ{ Ġevent Store Ġ} ĊĠĠĠ Ġ. build Configuration () ĊĊĠ Ġval Ġcommand Gateway Ġby Ġlazy Ġ{ ĊĠĠĠ Ġax on Configuration . command Gateway () ĊĠ Ġ} ĊĊĠ Ġval Ġquery Gateway Ġby Ġlazy Ġ{ ĊĠĠĠ Ġax on Configuration . query Gateway () ĊĠ Ġ} ĊĊĠ Ġax on Configuration . start () ĊĊĠ Ġcommand Gateway . send And Wait < Any >( Issue Command (" 1 ", Ġ 1 0 0 )) ĊĊĠ Ġval Ġsummar ies Ġ= Ġquery Gateway . query ( Find All , ĠResponse Types . multiple Instances Of ( Gift card Summary :: class . java )). join () ĊĊĠ Ġprintln (" sum maries : Ġ$ sum maries ") ĊĊĠ Ġax on Configuration . shutdown () Ċ } Ċ