pinglu
Aug 16th, 2004, 01:18 PM
how to match method name? for example:
public interface IMyBussessObject {
public String getSomething();
public String [b] doOtherthing();
}
I only want to do scuritycheck on getSomething, and do advice doOtherthing();
here is my application.xml:which will apply to all the method
<beans>
<bean id="myAdvice" class="com.ping.springdemo.MyAdvice">
</bean>
<bean id="businessObjectTarget" class="com.ping.MyBusinessObject" />
<bean id="securityInterceptor" class="com.ping.springdemo.SecurityInterceptor" />
<bean id="businessObject"
class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="target"><ref local="businessObjectTarget"/>
</property>
<property name="interceptorNames">
<list>
<value>securityInterceptor</value>
<value>myAdvice</value> </list>
</property>
</bean>
</beans>
public interface IMyBussessObject {
public String getSomething();
public String [b] doOtherthing();
}
I only want to do scuritycheck on getSomething, and do advice doOtherthing();
here is my application.xml:which will apply to all the method
<beans>
<bean id="myAdvice" class="com.ping.springdemo.MyAdvice">
</bean>
<bean id="businessObjectTarget" class="com.ping.MyBusinessObject" />
<bean id="securityInterceptor" class="com.ping.springdemo.SecurityInterceptor" />
<bean id="businessObject"
class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="target"><ref local="businessObjectTarget"/>
</property>
<property name="interceptorNames">
<list>
<value>securityInterceptor</value>
<value>myAdvice</value> </list>
</property>
</bean>
</beans>