james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r1135927 - /james/mailbox/trunk/maildir/src/main/java/org/apache/james/mailbox/maildir/MaildirStore.java
Date Wed, 15 Jun 2011 06:12:05 GMT
Author: norman
Date: Wed Jun 15 06:12:05 2011
New Revision: 1135927

URL: http://svn.apache.org/viewvc?rev=1135927&view=rev
Log:
Just one more constructor to make it easier to instance it

Modified:
    james/mailbox/trunk/maildir/src/main/java/org/apache/james/mailbox/maildir/MaildirStore.java

Modified: james/mailbox/trunk/maildir/src/main/java/org/apache/james/mailbox/maildir/MaildirStore.java
URL: http://svn.apache.org/viewvc/james/mailbox/trunk/maildir/src/main/java/org/apache/james/mailbox/maildir/MaildirStore.java?rev=1135927&r1=1135926&r2=1135927&view=diff
==============================================================================
--- james/mailbox/trunk/maildir/src/main/java/org/apache/james/mailbox/maildir/MaildirStore.java
(original)
+++ james/mailbox/trunk/maildir/src/main/java/org/apache/james/mailbox/maildir/MaildirStore.java
Wed Jun 15 06:12:05 2011
@@ -29,6 +29,7 @@ import org.apache.james.mailbox.MailboxP
 import org.apache.james.mailbox.MailboxPathLocker;
 import org.apache.james.mailbox.MailboxSession;
 import org.apache.james.mailbox.maildir.mail.model.MaildirMailbox;
+import org.apache.james.mailbox.store.JVMMailboxPathLocker;
 import org.apache.james.mailbox.store.mail.model.Mailbox;
 
 public class MaildirStore {
@@ -53,12 +54,18 @@ public class MaildirStore {
      * %fulluser
      * variables.
      * @param maildirLocation A String with variables
+     * @param locker
      */
     public MaildirStore(String maildirLocation, MailboxPathLocker locker) {
         this.maildirLocation = maildirLocation;
         this.locker = locker;
     }
     
+    public MaildirStore(String maildirLocation) {
+        this(maildirLocation, new JVMMailboxPathLocker());
+    }
+    
+    
     public String getMaildirLocation() {
         return maildirLocation;
     }



---------------------------------------------------------------------
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