mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 17:18:24 +08:00
style: 格式化 AuditManger 代码。
This commit is contained in:
parent
c5aab0043c
commit
2954b0c169
@ -34,11 +34,15 @@ import java.util.Map;
|
|||||||
*/
|
*/
|
||||||
public class AuditManager {
|
public class AuditManager {
|
||||||
|
|
||||||
|
|
||||||
|
private AuditManager() {
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private static MessageFactory messageFactory = new DefaultMessageFactory();
|
private static MessageFactory messageFactory = new DefaultMessageFactory();
|
||||||
|
|
||||||
private static boolean auditEnable = false;
|
private static boolean auditEnable = false;
|
||||||
private static Clock clock = System::currentTimeMillis;
|
private static Clock clock = System::currentTimeMillis;
|
||||||
private AuditManager() {}
|
|
||||||
private static MessageCollector messageCollector = new ScheduledMessageCollector();
|
private static MessageCollector messageCollector = new ScheduledMessageCollector();
|
||||||
|
|
||||||
public static boolean isAuditEnable() {
|
public static boolean isAuditEnable() {
|
||||||
@ -88,6 +92,7 @@ public class AuditManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("rawtypes")
|
||||||
public static <T> T startAudit(AuditRunnable<T> supplier, BoundSql boundSql, Configuration configuration) throws SQLException {
|
public static <T> T startAudit(AuditRunnable<T> supplier, BoundSql boundSql, Configuration configuration) throws SQLException {
|
||||||
AuditMessage auditMessage = messageFactory.create();
|
AuditMessage auditMessage = messageFactory.create();
|
||||||
if (auditMessage == null) {
|
if (auditMessage == null) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user