info.joseluismartin.audit
Class AbstractAuditor

java.lang.Object
  extended by info.joseluismartin.audit.AbstractAuditor
Direct Known Subclasses:
Auditor

public abstract class AbstractAuditor
extends Object

An Abstract Auditor usiing Spring AOP

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

Constructor Summary
AbstractAuditor()
           
 
Method Summary
abstract  Object audit(org.aspectj.lang.ProceedingJoinPoint pjp)
          Do audit
 String getUser()
          Get user from thread local var
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAuditor

public AbstractAuditor()
Method Detail

audit

public abstract Object audit(org.aspectj.lang.ProceedingJoinPoint pjp)
                      throws Throwable
Do audit

Parameters:
pjp - the AspectJ proceedingJoinPoint
Returns:
audit object
Throws:
Throwable - Exception

getUser

public String getUser()
Get user from thread local var

Returns:
the user


Copyright © 2012 JDAL. All Rights Reserved.