Package org.audit4j.integration.spring
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
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
AuditAdvice
public AuditAdvice()
-
-
Method Details
-
before
- Specified by:
beforein interfaceorg.springframework.aop.MethodBeforeAdvice- Throws:
Throwable- See Also:
-
MethodBeforeAdvice.before(java.lang.reflect.Method, java.lang.Object[], java.lang.Object)
-