|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.auditing.CorrelationAuditDataProvider
public class CorrelationAuditDataProvider
AuditDataProvider implementation that attaches the command identifier to each Event generated as result of that Command.
Field Summary | |
---|---|
static String |
DEFAULT_CORRELATION_KEY
The default meta-data key, which is used when an instance is created using the default constructor |
Constructor Summary | |
---|---|
CorrelationAuditDataProvider()
Initializes the CorrelationAuditDataProvider which attaches the Command Identifier to an Event's MetaData using the default key (""command-identifier""). |
|
CorrelationAuditDataProvider(String correlationIdKey)
Initializes the CorrelationAuditDataProvider which attaches the Command Identifier to an Event's MetaData using the given correlationIdKey . |
Method Summary | |
---|---|
Map<String,Object> |
provideAuditDataFor(CommandMessage<?> command)
Return the relevant auditing information for the given command. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_CORRELATION_KEY
Constructor Detail |
---|
public CorrelationAuditDataProvider()
public CorrelationAuditDataProvider(String correlationIdKey)
correlationIdKey
.
correlationIdKey
- the key under which to store the Command Identifier in the resulting Event's MetaDataMethod Detail |
---|
public Map<String,Object> provideAuditDataFor(CommandMessage<?> command)
AuditDataProvider
provideAuditDataFor
in interface AuditDataProvider
command
- The command being dispatched
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |