public abstract class BaseAggregateEvent extends DomainEvent
@Read, or
@Delete, or @Persist is called. The event contains the intercepted method with its arguments.
To received this event the interception on repository should be enable by adding the following properties in a props file.
org.seedstack.business.event.domain.watch=true
| Modifier and Type | Class and Description |
|---|---|
class |
BaseAggregateEvent.Context
Interception context with the method called and its arguments.
|
| Modifier | Constructor and Description |
|---|---|
protected |
BaseAggregateEvent(Method methodCalled,
Object[] args,
Class<? extends AggregateRoot<?>> aggregateRoot)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends AggregateRoot<?>> |
getAggregateRoot()
Gets the aggregate root concern by the event
|
BaseAggregateEvent.Context |
getContext() |
equals, hashCode, toStringprotected BaseAggregateEvent(Method methodCalled, Object[] args, Class<? extends AggregateRoot<?>> aggregateRoot)
methodCalled - intercepted methodargs - arguments of the intercepted methodaggregateRoot - aggregate root class concern by the eventpublic Class<? extends AggregateRoot<?>> getAggregateRoot()
public BaseAggregateEvent.Context getContext()
Copyright © 2013-2016–2016 SeedStack. All rights reserved.