james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1063317 - in /james/mime4j/branches/dom-api-refactoring/dom/src: main/java/org/apache/james/mime4j/dom/ main/java/org/apache/james/mime4j/message/ test/java/org/apache/james/mime4j/dom/
Date Tue, 25 Jan 2011 15:28:46 GMT
Author: olegk
Date: Tue Jan 25 15:28:46 2011
New Revision: 1063317

URL: http://svn.apache.org/viewvc?rev=1063317&view=rev
Log:
MessageBuilderFactory -> MessageServiceFactory

Added:
    james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/dom/MessageServiceFactory.java
      - copied, changed from r1063315, james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/dom/MessageBuilderFactory.java
    james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MessageServiceFactoryImpl.java
      - copied, changed from r1063315, james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MessageBuilderFactoryImpl.java
    james/mime4j/branches/dom-api-refactoring/dom/src/test/java/org/apache/james/mime4j/dom/MessageServiceFactoryTest.java
      - copied, changed from r1063293, james/mime4j/branches/dom-api-refactoring/dom/src/test/java/org/apache/james/mime4j/dom/MessageBuilderFactoryTest.java
Removed:
    james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/dom/MessageBuilderFactory.java
    james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MessageBuilderFactoryImpl.java
    james/mime4j/branches/dom-api-refactoring/dom/src/test/java/org/apache/james/mime4j/dom/MessageBuilderFactoryTest.java

Copied: james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/dom/MessageServiceFactory.java
(from r1063315, james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/dom/MessageBuilderFactory.java)
URL: http://svn.apache.org/viewvc/james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/dom/MessageServiceFactory.java?p2=james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/dom/MessageServiceFactory.java&p1=james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/dom/MessageBuilderFactory.java&r1=1063315&r2=1063317&rev=1063317&view=diff
==============================================================================
--- james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/dom/MessageBuilderFactory.java
(original)
+++ james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/dom/MessageServiceFactory.java
Tue Jan 25 15:28:46 2011
@@ -28,10 +28,10 @@ import org.apache.james.mime4j.MimeExcep
  * of MessageBuilderFactory.
  * Then the method newMessageBuilder is used to create a new EntityBuilder object.
  */
-public abstract class MessageBuilderFactory {
+public abstract class MessageServiceFactory {
 
-    public static MessageBuilderFactory newInstance() throws MimeException {
-        return ServiceLoader.load(MessageBuilderFactory.class);
+    public static MessageServiceFactory newInstance() throws MimeException {
+        return ServiceLoader.load(MessageServiceFactory.class);
     }
 
     public abstract MessageBuilder newMessageBuilder();

Copied: james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MessageServiceFactoryImpl.java
(from r1063315, james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MessageBuilderFactoryImpl.java)
URL: http://svn.apache.org/viewvc/james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MessageServiceFactoryImpl.java?p2=james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MessageServiceFactoryImpl.java&p1=james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MessageBuilderFactoryImpl.java&r1=1063315&r2=1063317&rev=1063317&view=diff
==============================================================================
--- james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MessageBuilderFactoryImpl.java
(original)
+++ james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MessageServiceFactoryImpl.java
Tue Jan 25 15:28:46 2011
@@ -19,7 +19,7 @@
 package org.apache.james.mime4j.message;
 
 import org.apache.james.mime4j.dom.MessageBuilder;
-import org.apache.james.mime4j.dom.MessageBuilderFactory;
+import org.apache.james.mime4j.dom.MessageServiceFactory;
 import org.apache.james.mime4j.dom.MessageFormatter;
 import org.apache.james.mime4j.storage.StorageProvider;
 import org.apache.james.mime4j.stream.MimeEntityConfig;
@@ -31,7 +31,7 @@ import org.apache.james.mime4j.stream.Mu
  * Supports the "StorageProvider", "MimeEntityConfig" and "MutableBodyDescriptorFactory"
  * attributes.
  */
-public class MessageBuilderFactoryImpl extends MessageBuilderFactory {
+public class MessageServiceFactoryImpl extends MessageServiceFactory {
 
     private StorageProvider storageProvider = null;
     private MimeEntityConfig mimeEntityConfig = null;

Copied: james/mime4j/branches/dom-api-refactoring/dom/src/test/java/org/apache/james/mime4j/dom/MessageServiceFactoryTest.java
(from r1063293, james/mime4j/branches/dom-api-refactoring/dom/src/test/java/org/apache/james/mime4j/dom/MessageBuilderFactoryTest.java)
URL: http://svn.apache.org/viewvc/james/mime4j/branches/dom-api-refactoring/dom/src/test/java/org/apache/james/mime4j/dom/MessageServiceFactoryTest.java?p2=james/mime4j/branches/dom-api-refactoring/dom/src/test/java/org/apache/james/mime4j/dom/MessageServiceFactoryTest.java&p1=james/mime4j/branches/dom-api-refactoring/dom/src/test/java/org/apache/james/mime4j/dom/MessageBuilderFactoryTest.java&r1=1063293&r2=1063317&rev=1063317&view=diff
==============================================================================
--- james/mime4j/branches/dom-api-refactoring/dom/src/test/java/org/apache/james/mime4j/dom/MessageBuilderFactoryTest.java
(original)
+++ james/mime4j/branches/dom-api-refactoring/dom/src/test/java/org/apache/james/mime4j/dom/MessageServiceFactoryTest.java
Tue Jan 25 15:28:46 2011
@@ -22,16 +22,16 @@ import org.apache.james.mime4j.MimeExcep
 
 import junit.framework.TestCase;
 
-public class MessageBuilderFactoryTest extends TestCase {
+public class MessageServiceFactoryTest extends TestCase {
 
     public void testNewInstance() throws MimeException {
-        MessageBuilderFactory factory = MessageBuilderFactory.newInstance();
+        MessageServiceFactory factory = MessageServiceFactory.newInstance();
         assertNotNull(factory);
     }
 
 
     public void testNewMessageBuilder() throws MimeException {
-        MessageBuilderFactory factory = MessageBuilderFactory.newInstance();
+        MessageServiceFactory factory = MessageServiceFactory.newInstance();
         assertNotNull(factory);
         MessageBuilder builder = factory.newMessageBuilder();
         Message message = builder.newMessage();



Mime
View raw message