public class CorrelationAuditDataProvider extends Object implements AuditDataProvider
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CORRELATION_KEY
The default meta-data key, which is used when an instance is created using the default constructor
|
Constructor and Description |
---|
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 . |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
provideAuditDataFor(CommandMessage<?> command)
Return the relevant auditing information for the given command.
|
public static final String DEFAULT_CORRELATION_KEY
public CorrelationAuditDataProvider()
public CorrelationAuditDataProvider(String correlationIdKey)
correlationIdKey
.correlationIdKey
- the key under which to store the Command Identifier in the resulting Event's MetaDatapublic Map<String,Object> provideAuditDataFor(CommandMessage<?> command)
AuditDataProvider
provideAuditDataFor
in interface AuditDataProvider
command
- The command being dispatchedCopyright © 2010-2014. All Rights Reserved.