Package no.ks.kes.demoapp
Class Application
-
- All Implemented Interfaces:
@Configuration()@SpringBootApplication() public final class Application
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classApplication.MyInitializerpublic final classApplication.MyWarehouseManager
-
Constructor Summary
Constructors Constructor Description Application()
-
Method Summary
Modifier and Type Method Description final DataSourcedatasource(@Value(value = "${mssql.host}") String host, @Value(value = "${mssql.port}") String port)final EventStoreDBClienteventStore(@Value(value = "${eventstore.host}") String host, @Value(value = "${eventstore.port}") String port)final EventSerdeseventSerdes()final ShipmentsshippedBaskets()final AggregateRepositoryaggregateRepo(EventStoreDBClient eventStoreDBClient, EventSerdes eventSerdes)final BasketCmdsbasketCmd(AggregateRepository aggregateRepository)final WarehouseManagerwarehouseManager()final ShipmentCmdsshipmentCmd(AggregateRepository aggregateRepository, WarehouseManager warehouseManager)final EventSubscriberFactory<?>subscriber(EventStoreDBClient eventStoreDBClient, EventSerdes eventSerdes)-
-
Method Detail
-
datasource
@Bean() final DataSource datasource(@Value(value = "${mssql.host}") String host, @Value(value = "${mssql.port}") String port)
-
eventStore
@Bean() final EventStoreDBClient eventStore(@Value(value = "${eventstore.host}") String host, @Value(value = "${eventstore.port}") String port)
-
eventSerdes
@Bean() final EventSerdes eventSerdes()
-
shippedBaskets
@Bean() final Shipments shippedBaskets()
-
aggregateRepo
@Bean()@DependsOn(value = {"flyway", "flywayInitializer"}) final AggregateRepository aggregateRepo(EventStoreDBClient eventStoreDBClient, EventSerdes eventSerdes)
-
basketCmd
@Bean() final BasketCmds basketCmd(AggregateRepository aggregateRepository)
-
warehouseManager
@Bean() final WarehouseManager warehouseManager()
-
shipmentCmd
@Bean() final ShipmentCmds shipmentCmd(AggregateRepository aggregateRepository, WarehouseManager warehouseManager)
-
subscriber
@Bean() final EventSubscriberFactory<?> subscriber(EventStoreDBClient eventStoreDBClient, EventSerdes eventSerdes)
-
-
-
-