META-INF.spring.mailbox-jcr.xml Maven / Gradle / Ivy
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> <!-- Mailbox JCR --> <bean id="jcr-mailboxmanager" class="org.apache.james.mailbox.jcr.JCRMailboxManager" init-method="init"> <constructor-arg index="0" ref="jcr-sessionMapperFactory"/> <constructor-arg index="1" ref="authenticator"/> <constructor-arg index="2" ref="authorizator"/> <constructor-arg index="3" ref="jcr-locker"/> <constructor-arg index="4" ref="storeRightManager"/> <property name="quotaManager" ref="quotaManager"/> <property name="quotaRootResolver" ref="quotaRootResolver"/> <property name="quotaUpdater" ref="quotaUpdater"/> <property name="delegatingMailboxListener" ref="delegating-listener"/> </bean> <bean id ="jcr-subscriptionManager" class="org.apache.james.mailbox.jcr.JCRSubscriptionManager"> <constructor-arg index="0" ref="jcr-sessionMapperFactory"/> </bean> <bean id="jcr-sessionMapperFactory" class="org.apache.james.mailbox.jcr.JCRMailboxSessionMapperFactory"> <constructor-arg index="0" ref="jcr-sessionJcrRepository"/> <constructor-arg index="1" ref="jcr-uidProvider"/> <constructor-arg index="2" ref="jcr-modSeqProvider"/> </bean> <bean id ="jcr-sessionJcrRepository" class="org.apache.james.mailbox.jcr.GlobalMailboxSessionJCRRepository" depends-on="imapCndLoader"> <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> <bean id="jcr-uidProvider" class="org.apache.james.mailbox.jcr.mail.JCRUidProvider"> <constructor-arg index="0" ref="jcr-locker"/> <constructor-arg index="1" ref="jcr-sessionJcrRepository"/> </bean> <bean id="jcr-modSeqProvider" class="org.apache.james.mailbox.jcr.mail.JCRModSeqProvider"> <constructor-arg index="0" ref="jcr-locker"/> <constructor-arg index="1" ref="jcr-sessionJcrRepository"/> </bean> <bean id="jcrRepository" class="org.apache.jackrabbit.core.RepositoryImpl" destroy-method="shutdown"> <constructor-arg index="0" ref="config" /> </bean> <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.mailbox.jcr.JCRUtils"/> <bean id="config" class="org.apache.jackrabbit.core.config.RepositoryConfig" factory-method="create"> <constructor-arg index="0" value="classpath:META-INF/org/apache/james/jcr-repository.xml" type="java.io.InputStream"/> <constructor-arg index="1" value="var/store/jackrabbit" /> </bean> <alias name="jvm-locker" alias="jcr-locker"/> <bean id="jcr-mailbox-id-deserializer" class="org.apache.james.mailbox.jcr.JCRMailboxIdDeserializer"/> </beans>