It would be nice that the beanNames properties would strip out white space so it would be easier to specify the names in a readable matter. Eg
Instead of this:
<bean id="serviceProxyCreator" class="org.springframework.aop.framework.autoproxy .BeanNameAutoProxyCreator">
<property name="beanNames">
<value>com.toto.pk.service1,com.toto.pk.service2,c om.toto.pk.service3,com.toto.pk.service4</value>
</property>
<property name="interceptorNames">
<list>
<value>debugInterceptor</value>
</list>
</property>
</bean>
Have this:
<bean id="serviceProxyCreator" class="org.springframework.aop.framework.autoproxy .BeanNameAutoProxyCreator">
<property name="beanNames">
<value>
com.toto.pk.service1,
com.toto.pk.service2,
com.toto.pk.service3,
com.toto.pk.service4
</value>
</property>
<property name="interceptorNames">
<list>
<value>debugInterceptor</value>
</list>
</property>
</bean>


Reply With Quote