org.axonframework.auditing
Class CommandMetaDataProvider

java.lang.Object
  extended by org.axonframework.auditing.CommandMetaDataProvider
All Implemented Interfaces:
AuditDataProvider

public class CommandMetaDataProvider
extends Object
implements AuditDataProvider

AuditDataProvider implementation that attaches a Command's MetaData to each event generated as result of that command.

Since:
2.0
Author:
Allard Buijze

Constructor Summary
CommandMetaDataProvider()
           
 
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
 

Constructor Detail

CommandMetaDataProvider

public CommandMetaDataProvider()
Method Detail

provideAuditDataFor

public Map<String,Object> provideAuditDataFor(CommandMessage<?> command)
Description copied from interface: AuditDataProvider
Return the relevant auditing information for the given command. This method is called exactly once for each time the command is dispatched.

Specified by:
provideAuditDataFor in interface AuditDataProvider
Parameters:
command - The command being dispatched
Returns:
a map containing key-value pairs of relevant information to include in audit logs.


Copyright © 2010-2016. All Rights Reserved.