info.joseluismartin.audit
Class Auditor

java.lang.Object
  extended by info.joseluismartin.audit.AbstractAuditor
      extended by info.joseluismartin.audit.Auditor

public class Auditor
extends AbstractAuditor

Auditor AOP Around advice to audit modifications on auditable models

Author:
Jose Luis Martin - (jlm@joseluismartin.info)

Constructor Summary
Auditor()
           
 
Method Summary
protected  void audit(Auditable auditable)
          Audit an auditable model
 Object audit(org.aspectj.lang.ProceedingJoinPoint pjp)
          Around advice to audit auditable models
 
Methods inherited from class info.joseluismartin.audit.AbstractAuditor
getUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Auditor

public Auditor()
Method Detail

audit

public Object audit(org.aspectj.lang.ProceedingJoinPoint pjp)
             throws Throwable
Around advice to audit auditable models

Specified by:
audit in class AbstractAuditor
Parameters:
pjp - to pjp
Returns:
object result
Throws:
Throwable - Exception

audit

protected void audit(Auditable auditable)
Audit an auditable model

Parameters:
auditable - auditable model


Copyright © 2012 JDAL. All Rights Reserved.