Skip to content

Instantly share code, notes, and snippets.

@rajeshpv
Created February 17, 2012 17:13
Show Gist options
  • Select an option

  • Save rajeshpv/1854431 to your computer and use it in GitHub Desktop.

Select an option

Save rajeshpv/1854431 to your computer and use it in GitHub Desktop.
spring method aop
<bean id="customizableTraceInterceptor" class="org.springframework.aop.interceptor.CustomizableTraceInterceptor">
<property name="enterMessage" value="Entering $[methodName]($[arguments])"/>
<property name="exitMessage" value="Leaving $[methodName](): $[returnValue]"/>
</bean>
<aop:config>
<aop:advisor advice-ref="customizableTraceInterceptor" pointcut="execution(public * org.synyx.hades.dao.GenericDao+.*(..))"/>
</aop:config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment