@Retention(value=RUNTIME) @Target(value=METHOD) public @interface Intercept
Annotate any beanProviderMethod with @Intercept("interceptorBean") to reference another bean that must implement the MethodInterceptor interface.
The MethodInterceptor#intercept() method will be called so you can intercept all method calls in the proxied bean and even alter the returned object. This is where you would add automatic transaction handling etc.
MethodInterceptorpublic abstract String value
Copyright © 2011-2012 Syse Data AS. All Rights Reserved.