Annotated interceptors - Binding the Interceptor
Binding the interceptor Open up SimpleInterceptor, and you will see that the class itself is normal, but that the class has been annotated as follows: import org.jboss.aop.Bind; import org.jboss.aop.InterceptorDef; @InterceptorDef @Bind (pointcut = "all(POJO)") public class SimpleInterceptor implements Interceptor { ... } The @InterceptorDef marks the class as an interceptor so that JBoss AOP knows what to do with it. The @Bind annotation specifies the pointcut the interceptor should be bound to. So in this case SimpleInterceptor gets bound to all constructor executions, method calls and field accesses on the POJO class. This example uses an all pointcut expression, but you can of course use any pointcut expression you like. SimpleInterceptor.java contains a few commented out example bindings so you can get rid of and introduce the ones you want. (Note that there can be only one uncommented @Bind at any time)