JBoss.org Community Documentation
Stacks allow you to define a predefined set of advices/interceptors that you want to reference from within
a
bind
element.
<stack name="stuff"> <interceptor class="SimpleInterceptor1" scope="PER_VM"/> <advice name="trace" aspect="org.jboss.TracingAspect"/> <interceptor class="SimpleInterceptor3"> <attribute name="size">55</attribute> </interceptor> </stack>
After defining the stack you can then reference it from within a
bind
element.
<bind pointcut="execution(* POJO->*(..))"> <stack-ref name="stuff"/> </bind>