I
- the type of part identifiersA
- the type of aggregate partsR
- the type of the aggregate root associated with the type of parts@Experimental public abstract class AggregatePartRepository<I,A extends AggregatePart<I,?,?,R>,R extends AggregateRoot<I>> extends AggregateRepository<I,A>
AggregatePart
s.Modifier | Constructor and Description |
---|---|
protected |
AggregatePartRepository()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
A |
create(I id)
Create a new entity instance with its default state.
|
void |
registerWith(BoundedContext context)
Initializes the repository during its registration with its context.
|
aggregateClass, aggregateStorage, close, createStorage, dispatch, dispatchEvent, doLoadOrCreate, domesticEvents, doStore, eventBus, events, externalEvents, find, importableEvents, messageClasses, outgoingEvents, play, setSnapshotTrigger, setupCommandRouting, setupEventRouting, setupImportRouting, snapshotTrigger, store, toModelClass
checkStorage, context, entityClass, entityStateType, eventFilter, hasContext, idClass, index, isOpen, isRegistered, iterator, onRegistered, open, storage, storageAssigned
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispatchesCommands
canDispatch
eventFilter, filter, postEvents, postIfCommandRejected
protected AggregatePartRepository()
@OverridingMethodsMustInvokeSuper public void registerWith(BoundedContext context)
Verifies that the class of aggregates of this repository subscribes to at least one type of messages.
Registers itself with CommandBus
,
EventBus
, and
ImportBus
of the context for dispatching
messages to its aggregates.
Registers itself with the AggregateRootDirectory
of the context.
registerWith
in class AggregateRepository<I,A extends AggregatePart<I,?,?,R>>
context
- the context of this repositorypublic A create(I id)
Repository
create
in class AggregateRepository<I,A extends AggregatePart<I,?,?,R>>
id
- the id of the entity