james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject svn commit: r1688153 - /james/server/trunk/container/spring/src/main/java/org/apache/james/container/spring/bean/factorypostprocessor/MailboxConfigurationBeanFactoryPostProcessor.java
Date Mon, 29 Jun 2015 08:51:18 GMT
Author: btellier
Date: Mon Jun 29 08:51:18 2015
New Revision: 1688153

URL: http://svn.apache.org/r1688153
Log:
MAILBOX-155 Add a messageMapperFactory alias in spring registry - contributed by Antoine Duprat

Modified:
    james/server/trunk/container/spring/src/main/java/org/apache/james/container/spring/bean/factorypostprocessor/MailboxConfigurationBeanFactoryPostProcessor.java

Modified: james/server/trunk/container/spring/src/main/java/org/apache/james/container/spring/bean/factorypostprocessor/MailboxConfigurationBeanFactoryPostProcessor.java
URL: http://svn.apache.org/viewvc/james/server/trunk/container/spring/src/main/java/org/apache/james/container/spring/bean/factorypostprocessor/MailboxConfigurationBeanFactoryPostProcessor.java?rev=1688153&r1=1688152&r2=1688153&view=diff
==============================================================================
--- james/server/trunk/container/spring/src/main/java/org/apache/james/container/spring/bean/factorypostprocessor/MailboxConfigurationBeanFactoryPostProcessor.java
(original)
+++ james/server/trunk/container/spring/src/main/java/org/apache/james/container/spring/bean/factorypostprocessor/MailboxConfigurationBeanFactoryPostProcessor.java
Mon Jun 29 08:51:18 2015
@@ -50,30 +50,38 @@ public class MailboxConfigurationBeanFac
             BeanDefinitionRegistry registry = (BeanDefinitionRegistry) beanFactory;
             String mailbox = null;
             String subscription = null;
+            String messageMapperFactory = null;
             if (provider.equalsIgnoreCase("jpa")) {
                 mailbox = "jpa-mailboxmanager";
                 subscription = "jpa-subscriptionManager";
+                messageMapperFactory = "jpa-sessionMapperFactory";
             } else if (provider.equalsIgnoreCase("memory")) {
                 mailbox = "memory-mailboxmanager";
                 subscription = "memory-subscriptionManager";
+                messageMapperFactory = "memory-sessionMapperFactory";
             } else if (provider.equalsIgnoreCase("jcr")) {
                 mailbox = "jcr-mailboxmanager";
                 subscription = "jcr-subscriptionManager";
+                messageMapperFactory = "jcr-sessionMapperFactory";
             } else if (provider.equalsIgnoreCase("maildir")) {
                 mailbox = "maildir-mailboxmanager";
                 subscription = "maildir-subscriptionManager";
+                messageMapperFactory = "maildir-sessionMapperFactory";
             } else if (provider.equalsIgnoreCase("hbase")) {
                 mailbox = "hbase-mailboxmanager";
                 subscription = "hbase-subscriptionManager";
+                messageMapperFactory = "hbase-sessionMapperFactory";
             } else if (provider.equalsIgnoreCase("cassandra")) {
                 mailbox = "cassandra-mailboxmanager";
                 subscription = "cassandra-subscriptionManager";
+                messageMapperFactory = "cassandra-sessionMapperFactory";
             }
 
             if (mailbox == null)
                 throw new ConfigurationException("Mailboxmanager provider " + provider +
" not supported!");
             registry.registerAlias(mailbox, "mailboxmanager");
             registry.registerAlias(subscription, "subscriptionManager");
+            registry.registerAlias(messageMapperFactory, "messageMapperFactory");
 
         } catch (ConfigurationException e) {
             throw new FatalBeanException("Unable to config the mailboxmanager", e);



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


Mime
View raw message