Class AuditAdvice

java.lang.Object
org.audit4j.integration.spring.AuditAdvice
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.springframework.aop.BeforeAdvice, org.springframework.aop.MethodBeforeAdvice

public class AuditAdvice extends Object implements org.springframework.aop.MethodBeforeAdvice
The Class AuditAdvice.

Usage:

 
 <bean id="auditAdvice" class="org.audit4j.integration.spring.AuditAdvice" />
 
 <bean id="serviceClass" class="com.xyz.myapp.service.ServiceImpl">
      <!-- properties here -->
 </bean>
 
 <bean id="serviceImplProxy" 
                  class="org.springframework.aop.framework.ProxyFactoryBean">
         <property name="target" ref="serviceClass" />
  
         <property name="interceptorNames">
             <list>
                 <value>auditAdvice</value>
             </list>
         </property>
   </bean>
 
 
Author:
Janith Bandara
  • Constructor Details

    • AuditAdvice

      public AuditAdvice()
  • Method Details

    • before

      public void before(Method method, Object[] params, Object arg2) throws Throwable
      Specified by:
      before in interface org.springframework.aop.MethodBeforeAdvice
      Throws:
      Throwable
      See Also:
      • MethodBeforeAdvice.before(java.lang.reflect.Method, java.lang.Object[], java.lang.Object)