
上QQ阅读APP看书,第一时间看更新
Default interceptors
Default interceptors are configurable interceptors that apply to a chosen set of classes. To configure the default interceptors, you can use the deployment descriptor to define them and their relative execution order.
The ExcludeDefaultInterceptors annotation showed in the previous paragraph can be used to exclude the invocation of these interceptors for a chosen annotated class or method of a chosen class. In WildFly, they can be used only through the EJB context and the ejb-jar.xml descriptor that we will see in Chapter 4 - Implementing Business logic, but the achievement of exclusion is the same as @ExcludeClassInterceptors.