You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2022/10/10 08:35:20 UTC

[james-project] branch master updated: [DEPRECATION] Deprecate JDBCMailRepository (#1237)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new eca609956e [DEPRECATION] Deprecate JDBCMailRepository (#1237)
eca609956e is described below

commit eca609956ef1c212456d45d5d6efc39ec74be198
Author: Benoit TELLIER <bt...@linagora.com>
AuthorDate: Mon Oct 10 15:35:15 2022 +0700

    [DEPRECATION] Deprecate JDBCMailRepository (#1237)
    
    Will be dropped in 3.9.0.
    
    See https://www.mail-archive.com/server-dev@james.apache.org/msg72460.html
---
 server/data/data-jdbc/pom.xml                                        | 1 +
 .../org/apache/james/mailrepository/jdbc/JDBCMailRepository.java     | 2 ++
 .../org/apache/james/mailrepository/jdbc/MessageInputStream.java     | 2 ++
 .../org/apache/james/mailrepository/jdbc/MimeMessageJDBCSource.java  | 2 ++
 .../org/apache/james/mailrepository/jdbc/JDBCMailRepositoryTest.java | 5 ++++-
 5 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/server/data/data-jdbc/pom.xml b/server/data/data-jdbc/pom.xml
index 74a7bfab34..be793f5853 100644
--- a/server/data/data-jdbc/pom.xml
+++ b/server/data/data-jdbc/pom.xml
@@ -31,6 +31,7 @@
     <packaging>jar</packaging>
 
     <name>Apache James :: Server :: Data :: JDBC Persistence</name>
+    <description>Deprecated Will be dropped in 3.9.0. See https://www.mail-archive.com/server-dev@james.apache.org/msg72460.html</description>
 
     <dependencies>
         <dependency>
diff --git a/server/data/data-jdbc/src/main/java/org/apache/james/mailrepository/jdbc/JDBCMailRepository.java b/server/data/data-jdbc/src/main/java/org/apache/james/mailrepository/jdbc/JDBCMailRepository.java
index 8c7c017124..260c716d22 100644
--- a/server/data/data-jdbc/src/main/java/org/apache/james/mailrepository/jdbc/JDBCMailRepository.java
+++ b/server/data/data-jdbc/src/main/java/org/apache/james/mailrepository/jdbc/JDBCMailRepository.java
@@ -76,7 +76,9 @@ import com.google.common.collect.ImmutableMap;
 
 /**
  * Implementation of a MailRepository on a database.
+ * @Deprecated Will be dropped in 3.9.0. See https://www.mail-archive.com/server-dev@james.apache.org/msg72460.html
  */
+@Deprecated
 public class JDBCMailRepository implements MailRepository, Configurable, Initializable {
     private static final Logger LOGGER = LoggerFactory.getLogger(JDBCMailRepository.class);
 
diff --git a/server/data/data-jdbc/src/main/java/org/apache/james/mailrepository/jdbc/MessageInputStream.java b/server/data/data-jdbc/src/main/java/org/apache/james/mailrepository/jdbc/MessageInputStream.java
index 2235ec07fd..21e18ba224 100644
--- a/server/data/data-jdbc/src/main/java/org/apache/james/mailrepository/jdbc/MessageInputStream.java
+++ b/server/data/data-jdbc/src/main/java/org/apache/james/mailrepository/jdbc/MessageInputStream.java
@@ -43,7 +43,9 @@ import org.apache.mailet.Mail;
  * 
  * <strong>Note</strong>: Javamail (or the Activation Framework) already uses a
  * worker thread when asked for an inputstream.
+ * @Deprecated Will be dropped in 3.9.0. See https://www.mail-archive.com/server-dev@james.apache.org/msg72460.html
  */
+@Deprecated
 final class MessageInputStream extends InputStream {
 
     /**
diff --git a/server/data/data-jdbc/src/main/java/org/apache/james/mailrepository/jdbc/MimeMessageJDBCSource.java b/server/data/data-jdbc/src/main/java/org/apache/james/mailrepository/jdbc/MimeMessageJDBCSource.java
index 289bf3d8e7..8be27e5bff 100644
--- a/server/data/data-jdbc/src/main/java/org/apache/james/mailrepository/jdbc/MimeMessageJDBCSource.java
+++ b/server/data/data-jdbc/src/main/java/org/apache/james/mailrepository/jdbc/MimeMessageJDBCSource.java
@@ -38,7 +38,9 @@ import org.apache.james.util.sql.JDBCUtil;
  * This class points to a specific message in a repository. This will return an
  * InputStream to the JDBC field/record, possibly sequenced with the file
  * stream.
+ * @Deprecated Will be dropped in 3.9.0. See https://www.mail-archive.com/server-dev@james.apache.org/msg72460.html
  */
+@Deprecated
 public class MimeMessageJDBCSource implements MimeMessageSource {
 
     /**
diff --git a/server/data/data-jdbc/src/test/java/org/apache/james/mailrepository/jdbc/JDBCMailRepositoryTest.java b/server/data/data-jdbc/src/test/java/org/apache/james/mailrepository/jdbc/JDBCMailRepositoryTest.java
index 0e9fc1b7f6..1810705386 100644
--- a/server/data/data-jdbc/src/test/java/org/apache/james/mailrepository/jdbc/JDBCMailRepositoryTest.java
+++ b/server/data/data-jdbc/src/test/java/org/apache/james/mailrepository/jdbc/JDBCMailRepositoryTest.java
@@ -37,7 +37,10 @@ import org.junit.jupiter.api.BeforeEach;
 import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.Tag;
 import org.junit.jupiter.api.Test;
-
+/**
+ * @Deprecated Will be dropped in 3.9.0. See https://www.mail-archive.com/server-dev@james.apache.org/msg72460.html
+ */
+@Deprecated
 public class JDBCMailRepositoryTest implements MailRepositoryContract {
 
     private JDBCMailRepository mailRepository;


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