magoffin.matt.ma2.aop
Class UserIndexInterceptor

java.lang.Object
  extended by magoffin.matt.ma2.aop.AbstractIndexInterceptor
      extended by magoffin.matt.ma2.aop.UserIndexInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.springframework.aop.AfterReturningAdvice

public class UserIndexInterceptor
extends AbstractIndexInterceptor

Interceptor to support automatic indexing of updated User domain objects.

This interceptor expects a User domain object (or a Long User ID) to be the returnValue passed to the afterReturning(Object, Method, Object[], Object) method. Using the userId of that User object (or the Long User ID directly) it will call the IndexBiz.indexUser(Long) method to index the user.

Version:
$Revision: 43 $ $Date: 2007-10-21 11:10:01 +1300 (Sun, 21 Oct 2007) $
Author:
Matt Magoffin (spamsqr@msqr.us)

Field Summary
 
Fields inherited from class magoffin.matt.ma2.aop.AbstractIndexInterceptor
log
 
Constructor Summary
UserIndexInterceptor()
           
 
Method Summary
 void afterReturning(java.lang.Object returnValue, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object target)
           
 
Methods inherited from class magoffin.matt.ma2.aop.AbstractIndexInterceptor
getIndexBiz, setIndexBiz
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserIndexInterceptor

public UserIndexInterceptor()
Method Detail

afterReturning

public void afterReturning(java.lang.Object returnValue,
                           java.lang.reflect.Method method,
                           java.lang.Object[] args,
                           java.lang.Object target)
                    throws java.lang.Throwable
Throws:
java.lang.Throwable