You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by er...@apache.org on 2011/06/20 06:49:48 UTC

svn commit: r1137496 - /james/mailbox/trunk/spring/src/main/resources/META-INF/james/spring-mailbox-lucene.xml

Author: eric
Date: Mon Jun 20 04:49:48 2011
New Revision: 1137496

URL: http://svn.apache.org/viewvc?rev=1137496&view=rev
Log:
Add spring file for mailbox-lucene (MAILBOX-76)

Added:
    james/mailbox/trunk/spring/src/main/resources/META-INF/james/spring-mailbox-lucene.xml

Added: james/mailbox/trunk/spring/src/main/resources/META-INF/james/spring-mailbox-lucene.xml
URL: http://svn.apache.org/viewvc/james/mailbox/trunk/spring/src/main/resources/META-INF/james/spring-mailbox-lucene.xml?rev=1137496&view=auto
==============================================================================
--- james/mailbox/trunk/spring/src/main/resources/META-INF/james/spring-mailbox-lucene.xml (added)
+++ james/mailbox/trunk/spring/src/main/resources/META-INF/james/spring-mailbox-lucene.xml Mon Jun 20 04:49:48 2011
@@ -0,0 +1,44 @@
+<?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 classpath:org/springframework/beans/factory/xml/spring-beans-3.0.xsd">
+
+    <!-- 
+      Mailbox Lucene
+     -->
+
+    <bean id="lazyIndex" class="org.apache.james.mailbox.store.search.LazyMessageSearchIndex">
+        <constructor-arg index="0" ref="luceneIndex"/>
+    </bean>
+    <bean id="luceneIndex" class="org.apache.james.mailbox.lucene.search.LuceneMessageSearchIndex">
+        <constructor-arg index="0" ref="maildir-sessionMapperFactory"/>
+        <constructor-arg index="1" ref="ramDirectory"/>
+        <constructor-arg index="2" value="false"/>
+        <constructor-arg index="3" value="true"/>
+        <property name="enableSuffixMatch" value="true"/>
+    </bean>
+    <bean id="ramDirectory"  class="org.apache.lucene.store.FSDirectory" factory-method="open">
+        <constructor-arg index="0" value="../var/store/lucene"/>
+    </bean>
+ 
+</beans>



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org