Skip to content

Instantly share code, notes, and snippets.

@trigolgy
Last active March 2, 2016 13:00
Show Gist options
  • Save trigolgy/6362473c05d60aa21341 to your computer and use it in GitHub Desktop.
Save trigolgy/6362473c05d60aa21341 to your computer and use it in GitHub Desktop.
deneme
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