org.axonframework.auditing
Class EmptyDataProvider

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

public class EmptyDataProvider
extends Object
implements AuditDataProvider

Implementation of AuditDataProvider that provides no information (empty map).

Since:
0.7
Author:
Allard Buijze

Field Summary
static EmptyDataProvider INSTANCE
          Returns a singleton instance to this data provider.
 
Constructor Summary
EmptyDataProvider()
           
 
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

INSTANCE

public static final EmptyDataProvider INSTANCE
Returns a singleton instance to this data provider.

Constructor Detail

EmptyDataProvider

public EmptyDataProvider()
Method Detail

provideAuditDataFor

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

This implementation returns an empty map.

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.