How come the injection below work? xml there is list type but in class there is String[] type. So which one is correct?
//spring reference there is
In Spring reference there is
<bean id="autoProxyCreator"
class="org.springframework.aop.framework.autoproxy .BeanNameAutoProxyCreator">
<property name="beanNames"><value>jdk*,onlyJdk</value></property>
//i am using this
<bean id="autoProxyCreator"
class="org.springframework.aop.framework.autoproxy .BeanNameAutoProxyCreator">
<property name="beanNames">
<list>
<idref bean="userImpl"/>
public class BeanNameAutoProxyCreator extends AbstractAutoProxyCreator
{
private List beanNames;
public void setBeanNames(String[] beanNames) {
this.beanNames = Arrays.asList(beanNames);
}


Reply With Quote