Author: norman Date: Sat Mar 27 13:53:03 2010 New Revision: 928199 URL: http://svn.apache.org/viewvc?rev=928199&view=rev Log: We need to use MethodInvokerBean for register our cnd because the register method does use void as return type
Modified: james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml Modified: james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml URL: http://svn.apache.org/viewvc/james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml?rev=928199&r1=928198&r2=928199&view=diff ============================================================================== --- james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml (original) +++ james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml Sat Mar 27 13:53:03 2010 @@ -338,13 +338,21 @@ <!-- JCR implementation of IMAP Storage--> <!-- - <bean id="imapCndLoader" class="org.apache.james.imap.jcr.JCRUtils" factory-method="registerCnd"> - <constructor-arg index="0" ref="jcrRepository"/> - <constructor-arg index="1" value="james"/> - <constructor-arg index="2" value="james"/> - <constructor-arg index="3" value="james"/> + <bean id="imapCndLoader" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> + <property name="targetObject"><ref local="jcrUtils"/></property> + <property name="targetMethod"><value>registerCnd</value></property> + <property name="arguments"> + <list> + <ref local="jcrRepository"/> + <value>james</value> + <value>james</value> + <value>james</value> + </list> + </property> </bean> + <bean id="jcrUtils" class="org.apache.james.imap.jcr.JCRUtils"/> + <bean id ="subscriper" class="org.apache.james.imap.jcr.JCRGlobalUserSubscriptionManager" depends-on="imapCndLoader"> <constructor-arg index="0" ref="jcrRepository"/> <constructor-arg index="1" value="james"/> --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org