com.ibm.fhir.audit.impl.NopService Maven / Gradle / Ivy
/*
* (C) Copyright IBM Corp. 2016, 2020
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.ibm.fhir.audit.impl;
import com.ibm.fhir.audit.AuditLogService;
import com.ibm.fhir.audit.beans.AuditLogEntry;
import com.ibm.fhir.config.PropertyGroup;
/**
* This class serves as a no-op audit service logger.
* It simply allows audit logging to be effectively disabled.
*/
public class NopService implements AuditLogService {
public NopService() {
super();
}
@Override
public boolean isEnabled() {
return false;
}
@Override
public void initialize(PropertyGroup auditLogProperties) throws Exception {
// No Operation
}
@Override
public void stop(PropertyGroup auditLogProperties) throws Exception {
// No Operation
}
@Override
public void logEntry(AuditLogEntry logEntry) {
// No Operation
}
}