|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.domain.AbstractAggregateRoot<I>
org.axonframework.eventsourcing.AbstractEventSourcedAggregateRoot<I>
org.axonframework.eventsourcing.annotation.AbstractAnnotatedAggregateRoot<I>
I - The type of the identifier of this aggregate@MappedSuperclass public abstract class AbstractAnnotatedAggregateRoot<I>
Convenience super type for aggregate roots that have their event handler methods annotated with the EventSourcingHandler annotation (and EventHandler for backwards compatibility).
AbstractEventSourcedAggregateRoot.apply(Object) method to have an event applied.
EventSourcingHandler,
EventHandler,
Serialized Form| Constructor Summary | |
|---|---|
AbstractAnnotatedAggregateRoot()
|
|
| Method Summary | |
|---|---|
protected ParameterResolverFactory |
createParameterResolverFactory()
Creates (or returns) a ParameterResolverFactory which is used by this aggregate root to resolve the parameters for @EventSourcingHandler annotated methods. |
protected Collection<EventSourcedEntity> |
getChildEntities()
Returns a collection of event sourced entities directly referenced by this entity. |
I |
getIdentifier()
Returns the identifier of this aggregate. |
protected void |
handle(DomainEventMessage event)
Calls the appropriate handler method with the provided event. |
void |
registerParameterResolverFactory(ParameterResolverFactory parameterResolverFactory)
Registers the given parameterResolverFactory with this aggregate instance. |
| Methods inherited from class org.axonframework.eventsourcing.AbstractEventSourcedAggregateRoot |
|---|
apply, apply, commitEvents, getVersion, initializeState, isLive |
| Methods inherited from class org.axonframework.domain.AbstractAggregateRoot |
|---|
addEventRegistrationCallback, getLastCommittedEventSequenceNumber, getUncommittedEventCount, getUncommittedEvents, initializeEventStream, isDeleted, markDeleted, registerEvent, registerEvent, registerEventMessage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.axonframework.domain.AggregateRoot |
|---|
addEventRegistrationCallback, getUncommittedEventCount, getUncommittedEvents, isDeleted |
| Constructor Detail |
|---|
public AbstractAnnotatedAggregateRoot()
| Method Detail |
|---|
protected void handle(DomainEventMessage event)
handle in class AbstractEventSourcedAggregateRoot<I>event - The event to handleEventSourcingHandler,
EventHandlerpublic I getIdentifier()
AggregateRoot
protected Collection<EventSourcedEntity> getChildEntities()
AbstractEventSourcedAggregateRoot
getChildEntities in class AbstractEventSourcedAggregateRoot<I>protected ParameterResolverFactory createParameterResolverFactory()
registerParameterResolverFactory(org.axonframework.common.annotation.ParameterResolverFactory),
this implementation uses the aggregate root's class loader to find parameter resolver factory implementations
on the classpath.
ClasspathParameterResolverFactorypublic void registerParameterResolverFactory(ParameterResolverFactory parameterResolverFactory)
parameterResolverFactory with this aggregate instance. This factory will
provide the resolvers necessary for the
@EventHandler and @EventSourcingHandler
annoated metods in all members of this aggregate.
parameterResolverFactory - The factory to provide resolvers for parameters of annotated event handlers
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||