Last active
March 2, 2016 13:00
-
-
Save trigolgy/6362473c05d60aa21341 to your computer and use it in GitHub Desktop.
deneme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Object invoke(MethodInvocation invocation) throws Throwable { | |
long start = System.currentTimeMillis(); | |
before(invocation.getMethod(), invocation.getArguments()); | |
try { | |
Object result = invocation.proceed(); | |
return result; | |
} finally | |
{ | |
if (invocation != null && | |
invocation.getMethod() != null && | |
invocation.getMethod().getName() != null | |
{ | |
AuditUtil.prepareInvokeAuditLog(AuditLoggerSettings.AUDIT_LOG_KATMAN_SERVICE, | |
AuditLoggerSettings.AUDIT_LOG_TURU_METOD, | |
AuditLoggerSettings.AUDIT_LOG_TIPI_SERVICE_INVOKE, | |
invocation.getMethod().getDeclaringClass().getCanonicalName(), | |
invocation.getMethod().getName(), auditLoggerSettings, args, timeMs); | |
} catch (Exception ex) { | |
} finally { | |
fos.close(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment