Tuesday, September 30, 2014

Example 2

<aop:config>
<aop:aspect id="PGMIDIntercepter" ref="pgmIDAspect">
<aop:pointcut id="pgmIDPointcut" expression="execution(* *..BBC*ServiceImpl.*(..)) or execution(* *..BBC0010BServiceImpl.*(..))" />
<aop:before pointcut-ref="pgmIDPointcut" method="setPGMIDBefore" />
</aop:aspect>
</aop:config>
<bean id="pgmIDAspect" class="com.extend.aop.PGMIDInterceptor">
<property name="order" value="90" />
</bean>

  <aop:config>
<aop:aspect id="InterceptorForComponentCall" ref="interceptorForComponentCall">
<aop:pointcut id="pointCutForComponentCall" expression="execution(* *..BBC*ServiceImpl.*(..)) or execution(* *..BBC0010BServiceImpl.*(..))" />
<aop:before pointcut-ref="pointCutForComponentCall" method="setPGMID" />
</aop:aspect>
</aop:config>

No comments:

Post a Comment