Uses of Class
dk.cloudcreate.essentials.components.eventsourced.aggregates.flex.FlexAggregate
-
Packages that use FlexAggregate Package Description dk.cloudcreate.essentials.components.eventsourced.aggregates dk.cloudcreate.essentials.components.eventsourced.aggregates.flex -
-
Uses of FlexAggregate in dk.cloudcreate.essentials.components.eventsourced.aggregates
Methods in dk.cloudcreate.essentials.components.eventsourced.aggregates with type parameters of type FlexAggregate Modifier and Type Method Description static <ID,EVENT_TYPE,AGGREGATE_TYPE extends FlexAggregate<ID,AGGREGATE_TYPE>>
EventsToPersist<ID,EVENT_TYPE>EventsToPersist. events(FlexAggregate<ID,AGGREGATE_TYPE> aggregate, EVENT_TYPE... eventsToPersist)Wrap the events that should be persisted relates to the given aggregate's command handlingstatic <ID,EVENT_TYPE,AGGREGATE_TYPE extends FlexAggregate<ID,AGGREGATE_TYPE>>
EventsToPersist<ID,EVENT_TYPE>EventsToPersist. noEvents(FlexAggregate<ID,AGGREGATE_TYPE> aggregate)Creates an emptyEventsToPersistwhich is handy for a commanded method didn't have a side-effect (e.g.Methods in dk.cloudcreate.essentials.components.eventsourced.aggregates with parameters of type FlexAggregate Modifier and Type Method Description static <ID,EVENT_TYPE,AGGREGATE_TYPE extends FlexAggregate<ID,AGGREGATE_TYPE>>
EventsToPersist<ID,EVENT_TYPE>EventsToPersist. events(FlexAggregate<ID,AGGREGATE_TYPE> aggregate, EVENT_TYPE... eventsToPersist)Wrap the events that should be persisted relates to the given aggregate's command handlingstatic <ID,EVENT_TYPE,AGGREGATE_TYPE extends FlexAggregate<ID,AGGREGATE_TYPE>>
EventsToPersist<ID,EVENT_TYPE>EventsToPersist. noEvents(FlexAggregate<ID,AGGREGATE_TYPE> aggregate)Creates an emptyEventsToPersistwhich is handy for a commanded method didn't have a side-effect (e.g. -
Uses of FlexAggregate in dk.cloudcreate.essentials.components.eventsourced.aggregates.flex
Classes in dk.cloudcreate.essentials.components.eventsourced.aggregates.flex with type parameters of type FlexAggregate Modifier and Type Class Description classFlexAggregate<ID,AGGREGATE_TYPE extends FlexAggregate<ID,AGGREGATE_TYPE>>Simple, easy and opinionated aggregate that allows you to apply events that don't have any requirements with regards to inheritance (i.e.interfaceFlexAggregateRepository<ID,AGGREGATE_TYPE extends FlexAggregate<ID,AGGREGATE_TYPE>>OpinionatedFlexAggregateRepository that's built to persist and load a specificFlexAggregatetype in combination withEventStore,EventStoreUnitOfWorkFactoryand aFlexAggregateRepository.static classFlexAggregateRepository.DefaultFlexAggregateRepository<ID,AGGREGATE_TYPE extends FlexAggregate<ID,AGGREGATE_TYPE>>Methods in dk.cloudcreate.essentials.components.eventsourced.aggregates.flex with type parameters of type FlexAggregate Modifier and Type Method Description static <CONFIG extends dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.persistence.AggregateEventStreamConfiguration,ID,AGGREGATE_TYPE extends FlexAggregate<ID,AGGREGATE_TYPE>>
FlexAggregateRepository<ID,AGGREGATE_TYPE>FlexAggregateRepository. from(dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.ConfigurableEventStore<CONFIG> eventStore, CONFIG aggregateEventStreamConfiguration, dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.transaction.EventStoreUnitOfWorkFactory unitOfWorkFactory, Class<ID> aggregateIdType, Class<AGGREGATE_TYPE> aggregateImplementationType)Create aFlexAggregateRepository- theEventStorewill be configured with the suppliedeventStreamConfiguration.static <CONFIG extends dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.persistence.AggregateEventStreamConfiguration,ID,AGGREGATE_TYPE extends FlexAggregate<ID,AGGREGATE_TYPE>>
FlexAggregateRepository<ID,AGGREGATE_TYPE>FlexAggregateRepository. from(dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.ConfigurableEventStore<CONFIG> eventStore, dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.eventstream.AggregateType aggregateType, dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.transaction.EventStoreUnitOfWorkFactory unitOfWorkFactory, Class<ID> aggregateIdType, Class<AGGREGATE_TYPE> aggregateImplementationType)Create aFlexAggregateRepository- if missing, theEventStorewill be configured with the defaultAggregateEventStreamConfigurationbased on theAggregateEventStreamConfigurationFactorythat theEventStore'sAggregateEventStreamPersistenceStrategyis configured with
-