[jboss-user] [JBoss AOP Users] - Re: aop.xml to pass parameters to interceptor
kabir.khan@jboss.com
do-not-reply at jboss.com
Thu Nov 19 08:59:44 EST 2009
| <?xml version="1.0" encoding="UTF-8"?>
| <aop>
| <interceptor class="GenericInterceptor" name="A">
| <attribute name="mockObjectName">MockEmailer</attribute>
| </interceptor>
| <interceptor class="GenericInterceptor" name="B">
| <attribute name="mockObjectName">mock-jpa-helper</attribute>
| </interceptor>
|
| <bind pointcut="execution(public CardEmailUtil->new())">
| <interceptor-ref name="A"/>
| </bind>
|
| <bind pointcut="execution(public CardJPAHelper->new(..))">
| <interceptor-ref name="B"/>
| </bind>
| </aop>
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266553#4266553
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266553
More information about the jboss-user
mailing list