org.bejug.javacareers.jobs.dao.common
Class ModificationDateAdvice

java.lang.Object
  extended byorg.bejug.javacareers.jobs.dao.common.ModificationDateAdvice
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.springframework.aop.BeforeAdvice, org.springframework.aop.MethodBeforeAdvice

public class ModificationDateAdvice
extends java.lang.Object
implements org.springframework.aop.MethodBeforeAdvice

An AOP Advice to add the creation when a new object is saved and update the modification date when an existing object is updated.

Version:
$Revision: 1.2 $ - $Date: 2005/08/31 12:16:11 $
Author:
Stephan Janssen (Last modified by $Author: bme_jcs $)

Constructor Summary
ModificationDateAdvice()
           
 
Method Summary
 void before(java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object o)
          the method to run when a method is called.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModificationDateAdvice

public ModificationDateAdvice()
Method Detail

before

public void before(java.lang.reflect.Method method,
                   java.lang.Object[] args,
                   java.lang.Object o)
            throws java.lang.Throwable
the method to run when a method is called.

Specified by:
before in interface org.springframework.aop.MethodBeforeAdvice
Throws:
java.lang.Throwable


Copyright © 2005-2006 BeJUG. All Rights Reserved.