This is an automated email from the ASF dual-hosted git repository.

rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit f79e4aca14cf627c3b635d844c30c85ec72b5da4
Author: Thanh Bui <[email protected]>
AuthorDate: Sun Jan 14 23:43:46 2024 +0700

    JAMES 3897: Add connectionCheckFactory bean into imapserver-context.xml
---
 .../imap/api/DefaultConnectionCheckFactory.java    | 35 ++++++++++++++++++++++
 .../META-INF/spring/imapserver-context.xml         |  2 ++
 2 files changed, 37 insertions(+)

diff --git 
a/protocols/imap/src/main/java/org/apache/james/imap/api/DefaultConnectionCheckFactory.java
 
b/protocols/imap/src/main/java/org/apache/james/imap/api/DefaultConnectionCheckFactory.java
new file mode 100644
index 0000000000..8ee4c9056a
--- /dev/null
+++ 
b/protocols/imap/src/main/java/org/apache/james/imap/api/DefaultConnectionCheckFactory.java
@@ -0,0 +1,35 @@
+/****************************************************************
+ * 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.                                           *
+ ****************************************************************/
+
+package org.apache.james.imap.api;
+
+import java.util.Set;
+
+import org.apache.commons.configuration2.HierarchicalConfiguration;
+import org.apache.commons.configuration2.tree.ImmutableNode;
+
+import com.google.common.collect.ImmutableSet;
+
+public class DefaultConnectionCheckFactory implements ConnectionCheckFactory {
+
+    @Override
+    public Set<ConnectionCheck> 
create(HierarchicalConfiguration<ImmutableNode> config) {
+        return ImmutableSet.of();
+    }
+}
diff --git 
a/server/protocols/protocols-imap4/src/main/resources/META-INF/spring/imapserver-context.xml
 
b/server/protocols/protocols-imap4/src/main/resources/META-INF/spring/imapserver-context.xml
index 82cc971e89..178d1c2137 100644
--- 
a/server/protocols/protocols-imap4/src/main/resources/META-INF/spring/imapserver-context.xml
+++ 
b/server/protocols/protocols-imap4/src/main/resources/META-INF/spring/imapserver-context.xml
@@ -26,6 +26,7 @@
         <constructor-arg index="3" ref="imapProcessor" />
         <constructor-arg index="4" ref="metricFactory" />
         <constructor-arg index="5" ref="gaugeRegistry" />
+        <constructor-arg index="6" ref="connectionCheckFactory" />
     </bean>
 
     <!-- The imapProcessor configuration will be reviewed when IMAP will be 
integrated into Protocols project -->
@@ -50,4 +51,5 @@
 
     <bean id="timeMetricFactory" 
class="org.apache.james.metrics.logger.DefaultMetricFactory"/>
 
+    <bean id="connectionCheckFactory" 
class="org.apache.james.imap.api.DefaultConnectionCheckFactory" />
 </beans>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to