Author: danny
Date: Tue Nov 7 04:25:14 2006
New Revision: 472082
URL: http://svn.apache.org/viewvc?view=rev&rev=472082
Log:
added a no args factory method
Modified:
james/server/sandbox/mailet-refactorings/src/java/org/apache/james/JamesMailFactory.java
james/server/sandbox/mailet-refactorings/src/java/org/apache/mailet/MailFactory.java
Modified:
james/server/sandbox/mailet-refactorings/src/java/org/apache/james/JamesMailFactory.java
URL:
http://svn.apache.org/viewvc/james/server/sandbox/mailet-refactorings/src/java/org/apache/james/JamesMailFactory.java?view=diff&rev=472082&r1=472081&r2=472082
==============================================================================
---
james/server/sandbox/mailet-refactorings/src/java/org/apache/james/JamesMailFactory.java
(original)
+++
james/server/sandbox/mailet-refactorings/src/java/org/apache/james/JamesMailFactory.java
Tue Nov 7 04:25:14 2006
@@ -1,14 +1,21 @@
-/*
- * Created on Oct 31, 2006
- *
- * PVCS Workfile Details:
- * $Workfile$
- * $Revision$
- * $Author$
- * $Date$
- * $Modtime$
- */
-
+/****************************************************************
+ * 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;
import java.util.Collection;
@@ -21,10 +28,10 @@
/**
- * @author angusd
- * @author $Author$
- * @version $Revision$
+
*/
+
+
public class JamesMailFactory implements MailFactory {
/**
@@ -45,6 +52,15 @@
return new MailImpl(originalMail);
+ }
+
+ /**
+ * @see org.apache.mailet.MailFactory#newMail()
+ */
+ public Mail newMail() throws MessagingException {
+
+
+ return new MailImpl();
}
}
Modified:
james/server/sandbox/mailet-refactorings/src/java/org/apache/mailet/MailFactory.java
URL:
http://svn.apache.org/viewvc/james/server/sandbox/mailet-refactorings/src/java/org/apache/mailet/MailFactory.java?view=diff&rev=472082&r1=472081&r2=472082
==============================================================================
---
james/server/sandbox/mailet-refactorings/src/java/org/apache/mailet/MailFactory.java
(original)
+++
james/server/sandbox/mailet-refactorings/src/java/org/apache/mailet/MailFactory.java
Tue Nov 7 04:25:14 2006
@@ -28,6 +28,12 @@
*
*/
public interface MailFactory {
+
+ /**
+ * @return
+ * @throws MessagingException
+ */
+ Mail newMail() throws MessagingException;
/**
* @param id
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]