Uses of Interface
dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateInstanceFactory
-
Packages that use StatefulAggregateInstanceFactory Package Description dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful -
-
Uses of StatefulAggregateInstanceFactory in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful
Classes in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful that implement StatefulAggregateInstanceFactory Modifier and Type Class Description static classStatefulAggregateInstanceFactory.ObjenesisAggregateInstanceFactoryStatefulAggregateInstanceFactorythat 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 classStatefulAggregateInstanceFactory.ReflectionBasedAggregateInstanceFactoryStatefulAggregateInstanceFactorythat 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 StatefulAggregateInstanceFactory Modifier and Type Field Description static StatefulAggregateInstanceFactoryStatefulAggregateInstanceFactory. DEFAULT_REFLECTION_BASED_CONSTRUCTOR_AGGREGATE_ROOT_FACTORYAnStatefulAggregateInstanceFactorythat calls the default no-arguments constructor on the concreteAggregatetype to create a new instance of theAggregatestatic 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 StatefulAggregateInstanceFactory Modifier and Type Method Description static StatefulAggregateInstanceFactoryStatefulAggregateInstanceFactory. 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 byObjenesisstatic StatefulAggregateInstanceFactoryStatefulAggregateInstanceFactory. 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 StatefulAggregateInstanceFactory Modifier and Type Method Description static <CONFIG extends AggregateEventStreamConfiguration,ID,EVENT_TYPE,AGGREGATE_IMPL_TYPE extends StatefulAggregate<ID,EVENT_TYPE,AGGREGATE_IMPL_TYPE>>
StatefulAggregateRepository<ID,EVENT_TYPE,AGGREGATE_IMPL_TYPE>StatefulAggregateRepository. from(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 AggregateEventStreamConfiguration,ID,EVENT_TYPE,AGGREGATE_IMPL_TYPE extends StatefulAggregate<ID,EVENT_TYPE,AGGREGATE_IMPL_TYPE>>
StatefulAggregateRepository<ID,EVENT_TYPE,AGGREGATE_IMPL_TYPE>StatefulAggregateRepository. from(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 AggregateEventStreamConfiguration,ID,EVENT_TYPE,AGGREGATE_IMPL_TYPE extends StatefulAggregate<ID,EVENT_TYPE,AGGREGATE_IMPL_TYPE>>
StatefulAggregateRepository<ID,EVENT_TYPE,AGGREGATE_IMPL_TYPE>StatefulAggregateRepository. from(ConfigurableEventStore<CONFIG> eventStore, 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 AggregateEventStreamConfiguration,ID,EVENT_TYPE,AGGREGATE_IMPL_TYPE extends StatefulAggregate<ID,EVENT_TYPE,AGGREGATE_IMPL_TYPE>>
StatefulAggregateRepository<ID,EVENT_TYPE,AGGREGATE_IMPL_TYPE>StatefulAggregateRepository. from(ConfigurableEventStore<CONFIG> eventStore, 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 withConstructors in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful with parameters of type StatefulAggregateInstanceFactory Constructor Description StatefulAggregateInMemoryProjector(StatefulAggregateInstanceFactory aggregateRootInstanceFactory)
-