Package com.illumon.util.audit
Enum AuditEventLogger.Null
- All Implemented Interfaces:
AuditEventLogger
,Serializable
,Comparable<AuditEventLogger.Null>
,java.lang.constant.Constable
- Enclosing interface:
- AuditEventLogger
public static enum AuditEventLogger.Null extends Enum<AuditEventLogger.Null> implements AuditEventLogger
An implementation of
AuditEventLogger
that does nothing.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.util.audit.AuditEventLogger
AuditEventLogger.Null
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
Modifier and Type Method Description void
event(AuditEvent event)
Log the givenAuditEvent
.static AuditEventLogger.Null
valueOf(String name)
Returns the enum constant of this type with the specified name.static AuditEventLogger.Null[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
event
Description copied from interface:AuditEventLogger
Log the givenAuditEvent
.- Specified by:
event
in interfaceAuditEventLogger
-