Uses of Interface
dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateInstanceFactory
Packages that use StatefulAggregateInstanceFactory
-
Uses of StatefulAggregateInstanceFactory in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful
Classes in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful that implement StatefulAggregateInstanceFactoryModifier and TypeClassDescriptionstatic classStatefulAggregateInstanceFactorythat usesObjenesisto create a new instance of theAggregate
Please note: Objenesis doesn't initialize fields nor call any constructors, so youAggregatedesign needs to take this into consideration.
All concrete aggregates that extendsAggregateRoothave been prepared to be initialized byObjenesisstatic classStatefulAggregateInstanceFactorythat calls the default no-arguments constructor on the concreteAggregatetype to create a new instance of theAggregateFields in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful declared as StatefulAggregateInstanceFactoryModifier and TypeFieldDescriptionstatic final StatefulAggregateInstanceFactoryStatefulAggregateInstanceFactory.DEFAULT_REFLECTION_BASED_CONSTRUCTOR_AGGREGATE_ROOT_FACTORYAnStatefulAggregateInstanceFactorythat calls the default no-arguments constructor on the concreteAggregatetype to create a new instance of theAggregatestatic final StatefulAggregateInstanceFactoryStatefulAggregateInstanceFactory.OBJENESIS_AGGREGATE_ROOT_FACTORYAnStatefulAggregateInstanceFactorythat usesObjenesisto create a new instance of theAggregate
Please note: Objenesis doesn't initialize fields nor call any constructors, so youAggregatedesign needs to take this into consideration.
All concrete aggregates that extendsStatefulAggregatehave been prepared to be initialized byObjenesisMethods in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful that return StatefulAggregateInstanceFactoryModifier and TypeMethodDescriptionStatefulAggregateInstanceFactory.objenesisAggregateRootFactory()Returns anStatefulAggregateInstanceFactorythat usesObjenesisto create a new instance of theAggregate
Please note: Objenesis doesn't initialize fields nor call any constructors, so youAggregatedesign needs to take this into consideration.
All concrete aggregates that extendsAggregateRoothave been prepared to be initialized byObjenesisStatefulAggregateInstanceFactory.reflectionBasedAggregateRootFactory()Returns anStatefulAggregateInstanceFactorythat calls the default no-arguments constructor on the concreteAggregatetype to create a new instance of theAggregateMethods in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful with parameters of type StatefulAggregateInstanceFactoryModifier and TypeMethodDescriptionstatic <CONFIG extends dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.persistence.AggregateEventStreamConfiguration,ID, EVENT_TYPE, AGGREGATE_IMPL_TYPE extends StatefulAggregate<ID, EVENT_TYPE, AGGREGATE_IMPL_TYPE>>
StatefulAggregateRepository<ID,EVENT_TYPE, AGGREGATE_IMPL_TYPE> StatefulAggregateRepository.from(dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.ConfigurableEventStore<CONFIG> eventStore, CONFIG eventStreamConfiguration, StatefulAggregateInstanceFactory aggregateRootInstanceFactory, Class<AGGREGATE_IMPL_TYPE> aggregateImplementationType) Create anStatefulAggregateRepositoryinstance that supports loading and persisting the given Aggregate type - theEventStorewill be configured with the suppliedeventStreamConfiguration.
This factory method will try to resolve the Aggregate Id type from the aggregateImplementationType type parameters
If that fails please useStatefulAggregateRepository.from(ConfigurableEventStore, AggregateEventStreamConfiguration, StatefulAggregateInstanceFactory, Class, Class)static <CONFIG extends dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.persistence.AggregateEventStreamConfiguration,ID, EVENT_TYPE, AGGREGATE_IMPL_TYPE extends StatefulAggregate<ID, EVENT_TYPE, AGGREGATE_IMPL_TYPE>>
StatefulAggregateRepository<ID,EVENT_TYPE, AGGREGATE_IMPL_TYPE> StatefulAggregateRepository.from(dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.ConfigurableEventStore<CONFIG> eventStore, CONFIG eventStreamConfiguration, StatefulAggregateInstanceFactory aggregateRootInstanceFactory, Class<AGGREGATE_IMPL_TYPE> aggregateImplementationType, AggregateSnapshotRepository aggregateSnapshotRepository) Create anStatefulAggregateRepositoryinstance that supports loading and persisting the given Aggregate type - theEventStorewill be configured with the suppliedeventStreamConfiguration.
This factory method will try to resolve the Aggregate Id type from the aggregateImplementationType type parameters
If that fails please useStatefulAggregateRepository.from(ConfigurableEventStore, AggregateEventStreamConfiguration, StatefulAggregateInstanceFactory, Class, Class)static <CONFIG extends dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.persistence.AggregateEventStreamConfiguration,ID, EVENT_TYPE, AGGREGATE_IMPL_TYPE extends StatefulAggregate<ID, EVENT_TYPE, AGGREGATE_IMPL_TYPE>>
StatefulAggregateRepository<ID,EVENT_TYPE, AGGREGATE_IMPL_TYPE> StatefulAggregateRepository.from(dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.ConfigurableEventStore<CONFIG> eventStore, CONFIG eventStreamConfiguration, StatefulAggregateInstanceFactory aggregateRootInstanceFactory, Class<ID> aggregateIdType, Class<AGGREGATE_IMPL_TYPE> aggregateImplementationType) Create anStatefulAggregateRepositoryinstance that supports loading and persisting the given Aggregate type - theEventStorewill be configured with the suppliedeventStreamConfigurationstatic <CONFIG extends dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.persistence.AggregateEventStreamConfiguration,ID, EVENT_TYPE, AGGREGATE_IMPL_TYPE extends StatefulAggregate<ID, EVENT_TYPE, AGGREGATE_IMPL_TYPE>>
StatefulAggregateRepository<ID,EVENT_TYPE, AGGREGATE_IMPL_TYPE> StatefulAggregateRepository.from(dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.ConfigurableEventStore<CONFIG> eventStore, CONFIG eventStreamConfiguration, StatefulAggregateInstanceFactory aggregateRootInstanceFactory, Class<ID> aggregateIdType, Class<AGGREGATE_IMPL_TYPE> aggregateImplementationType, AggregateSnapshotRepository aggregateSnapshotRepository) Create anStatefulAggregateRepositoryinstance that supports loading and persisting the given Aggregate type - theEventStorewill be configured with the suppliedeventStreamConfigurationstatic <CONFIG extends dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.persistence.AggregateEventStreamConfiguration,ID, EVENT_TYPE, AGGREGATE_IMPL_TYPE extends StatefulAggregate<ID, EVENT_TYPE, AGGREGATE_IMPL_TYPE>>
StatefulAggregateRepository<ID,EVENT_TYPE, AGGREGATE_IMPL_TYPE> StatefulAggregateRepository.from(dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.ConfigurableEventStore<CONFIG> eventStore, dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.eventstream.AggregateType aggregateType, StatefulAggregateInstanceFactory aggregateRootInstanceFactory, Class<AGGREGATE_IMPL_TYPE> aggregateImplementationType) Create anStatefulAggregateRepositoryinstance that supports loading and persisting the given Aggregate type - if missing, theEventStorewill be configured with the defaultAggregateEventStreamConfigurationbased on theAggregateEventStreamConfigurationFactorythat theEventStore'sAggregateEventStreamPersistenceStrategyis configured with
This factory method will try to resolve the Aggregate Id type from the aggregateImplementationType type parameters
If that fails please useStatefulAggregateRepository.from(ConfigurableEventStore, AggregateEventStreamConfiguration, StatefulAggregateInstanceFactory, Class, Class)static <CONFIG extends dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.persistence.AggregateEventStreamConfiguration,ID, EVENT_TYPE, AGGREGATE_IMPL_TYPE extends StatefulAggregate<ID, EVENT_TYPE, AGGREGATE_IMPL_TYPE>>
StatefulAggregateRepository<ID,EVENT_TYPE, AGGREGATE_IMPL_TYPE> StatefulAggregateRepository.from(dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.ConfigurableEventStore<CONFIG> eventStore, dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.eventstream.AggregateType aggregateType, StatefulAggregateInstanceFactory aggregateRootInstanceFactory, Class<AGGREGATE_IMPL_TYPE> aggregateImplementationType, AggregateSnapshotRepository aggregateSnapshotRepository) Create anStatefulAggregateRepositoryinstance that supports loading and persisting the given Aggregate type - if missing, theEventStorewill be configured with the defaultAggregateEventStreamConfigurationbased on theAggregateEventStreamConfigurationFactorythat theEventStore'sAggregateEventStreamPersistenceStrategyis configured with
This factory method will try to resolve the Aggregate Id type from the aggregateImplementationType type parameters
If that fails please useStatefulAggregateRepository.from(ConfigurableEventStore, AggregateEventStreamConfiguration, StatefulAggregateInstanceFactory, Class, Class)static <CONFIG extends dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.persistence.AggregateEventStreamConfiguration,ID, EVENT_TYPE, AGGREGATE_IMPL_TYPE extends StatefulAggregate<ID, EVENT_TYPE, AGGREGATE_IMPL_TYPE>>
StatefulAggregateRepository<ID,EVENT_TYPE, AGGREGATE_IMPL_TYPE> StatefulAggregateRepository.from(dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.ConfigurableEventStore<CONFIG> eventStore, dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.eventstream.AggregateType aggregateType, StatefulAggregateInstanceFactory aggregateRootInstanceFactory, Class<ID> aggregateIdType, Class<AGGREGATE_IMPL_TYPE> aggregateImplementationType) Create anStatefulAggregateRepositoryinstance that supports loading and persisting the given Aggregate type - if missing, theEventStorewill be configured with the defaultAggregateEventStreamConfigurationbased on theAggregateEventStreamConfigurationFactorythat theEventStore'sAggregateEventStreamPersistenceStrategyis configured withstatic <CONFIG extends dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.persistence.AggregateEventStreamConfiguration,ID, EVENT_TYPE, AGGREGATE_IMPL_TYPE extends StatefulAggregate<ID, EVENT_TYPE, AGGREGATE_IMPL_TYPE>>
StatefulAggregateRepository<ID,EVENT_TYPE, AGGREGATE_IMPL_TYPE> StatefulAggregateRepository.from(dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.ConfigurableEventStore<CONFIG> eventStore, dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.eventstream.AggregateType aggregateType, StatefulAggregateInstanceFactory aggregateRootInstanceFactory, Class<ID> aggregateIdType, Class<AGGREGATE_IMPL_TYPE> aggregateImplementationType, AggregateSnapshotRepository aggregateSnapshotRepository) Create anStatefulAggregateRepositoryinstance that supports loading and persisting the given Aggregate type - if missing, theEventStorewill be configured with the defaultAggregateEventStreamConfigurationbased on theAggregateEventStreamConfigurationFactorythat theEventStore'sAggregateEventStreamPersistenceStrategyis configured withConstructors in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful with parameters of type StatefulAggregateInstanceFactoryModifierConstructorDescriptionStatefulAggregateInMemoryProjector(StatefulAggregateInstanceFactory aggregateRootInstanceFactory) StatefulAggregateInMemoryProjector(StatefulAggregateInstanceFactory aggregateRootInstanceFactory, AggregateSnapshotRepository aggregateSnapshotRepository)