ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1701334 - in /webservices/axiom/trunk/implementations: axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/factory/ axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/ axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/ axi...
Date Fri, 04 Sep 2015 22:27:45 GMT
Author: veithen
Date: Fri Sep  4 22:27:44 2015
New Revision: 1701334

URL: http://svn.apache.org/r1701334
Log:
Remove some legacy constructors and make sure that factories are singletons.

Modified:
    webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/factory/OMDOMFactory.java
    webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFactoryImpl.java
    webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java
    webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12Factory.java
    webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/factory/OMLinkedListImplFactory.java
    webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/factory/OMLinkedListMetaFactory.java
    webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFactoryImpl.java
    webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11Factory.java
    webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12Factory.java

Modified: webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/factory/OMDOMFactory.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/factory/OMDOMFactory.java?rev=1701334&r1=1701333&r2=1701334&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/factory/OMDOMFactory.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/factory/OMDOMFactory.java
Fri Sep  4 22:27:44 2015
@@ -132,10 +132,6 @@ public class OMDOMFactory implements Axi
         this.metaFactory = metaFactory;
     }
 
-    public OMDOMFactory() {
-        this(new OMDOMMetaFactory());
-    }
-
     public OMMetaFactory getMetaFactory() {
         return metaFactory;
     }

Modified: webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFactoryImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFactoryImpl.java?rev=1701334&r1=1701333&r2=1701334&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFactoryImpl.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFactoryImpl.java
Fri Sep  4 22:27:44 2015
@@ -27,7 +27,4 @@ public abstract class SOAPFactoryImpl ex
     public SOAPFactoryImpl(OMDOMMetaFactory metaFactory) {
         super(metaFactory);
     }
-
-    public SOAPFactoryImpl() {
-    }
 }

Modified: webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java?rev=1701334&r1=1701333&r2=1701334&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java
Fri Sep  4 22:27:44 2015
@@ -29,7 +29,4 @@ public class SOAP11Factory extends SOAPF
     public SOAP11Factory(OMDOMMetaFactory metaFactory) {
         super(metaFactory);
     }
-    
-    public SOAP11Factory() {
-    }
 }

Modified: webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12Factory.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12Factory.java?rev=1701334&r1=1701333&r2=1701334&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12Factory.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12Factory.java
Fri Sep  4 22:27:44 2015
@@ -29,7 +29,4 @@ public class SOAP12Factory extends SOAPF
     public SOAP12Factory(OMDOMMetaFactory metaFactory) {
         super(metaFactory);
     }
-
-    public SOAP12Factory() {
-    }
 }

Modified: webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/factory/OMLinkedListImplFactory.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/factory/OMLinkedListImplFactory.java?rev=1701334&r1=1701333&r2=1701334&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/factory/OMLinkedListImplFactory.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/factory/OMLinkedListImplFactory.java
Fri Sep  4 22:27:44 2015
@@ -30,7 +30,6 @@ import org.apache.axiom.core.CoreNSAware
 import org.apache.axiom.core.CoreNamespaceDeclaration;
 import org.apache.axiom.core.CoreNode;
 import org.apache.axiom.core.CoreProcessingInstruction;
-import org.apache.axiom.om.OMAbstractFactory;
 import org.apache.axiom.om.OMMetaFactory;
 import org.apache.axiom.om.impl.common.AxiomAttribute;
 import org.apache.axiom.om.impl.common.AxiomCDATASection;
@@ -113,13 +112,6 @@ public class OMLinkedListImplFactory imp
     protected OMLinkedListImplFactory(OMLinkedListMetaFactory metaFactory) {
         this.metaFactory = metaFactory;
     }
-    
-    /**
-     * @deprecated Use {@link OMAbstractFactory#getOMFactory()} to get an instance of this
class.
-     */
-    public OMLinkedListImplFactory() {
-        this(new OMLinkedListMetaFactory());
-    }
 
     public OMMetaFactory getMetaFactory() {
         return metaFactory;

Modified: webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/factory/OMLinkedListMetaFactory.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/factory/OMLinkedListMetaFactory.java?rev=1701334&r1=1701333&r2=1701334&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/factory/OMLinkedListMetaFactory.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/factory/OMLinkedListMetaFactory.java
Fri Sep  4 22:27:44 2015
@@ -50,16 +50,4 @@ public class OMLinkedListMetaFactory ext
     public AxiomSOAPMessage createSOAPMessage() {
         return new SOAPMessageImpl(null);
     }
-
-    public int hashCode() {
-        return getClass().hashCode();
-    }
-    
-    public boolean equals(Object obj) {
-        // All instances of this class are considered equal. This is only required
-        // to support legacy code that instantiates OMFactory implementations directly
-        // (in which case the OMMetaFactory implementation is not guaranteed to be
-        // a singleton). May be removed in Axiom 1.3.
-        return obj != null && obj.getClass() == getClass();
-    }
 }

Modified: webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFactoryImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFactoryImpl.java?rev=1701334&r1=1701333&r2=1701334&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFactoryImpl.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFactoryImpl.java
Fri Sep  4 22:27:44 2015
@@ -26,10 +26,4 @@ public abstract class SOAPFactoryImpl ex
     public SOAPFactoryImpl(OMLinkedListMetaFactory metaFactory) {
         super(metaFactory);
     }
-
-    /**
-     * @deprecated
-     */
-    public SOAPFactoryImpl() {
-    }
 }

Modified: webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11Factory.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11Factory.java?rev=1701334&r1=1701333&r2=1701334&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11Factory.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11Factory.java
Fri Sep  4 22:27:44 2015
@@ -19,7 +19,6 @@
 
 package org.apache.axiom.soap.impl.llom.soap11;
 
-import org.apache.axiom.om.OMAbstractFactory;
 import org.apache.axiom.om.impl.llom.factory.OMLinkedListMetaFactory;
 import org.apache.axiom.soap.impl.common.AxiomSOAP11Factory;
 import org.apache.axiom.soap.impl.llom.SOAPFactoryImpl;
@@ -35,11 +34,4 @@ public class SOAP11Factory extends SOAPF
     public SOAP11Factory(OMLinkedListMetaFactory metaFactory) {
         super(metaFactory);
     }
-
-    /**
-     * @deprecated Use {@link OMAbstractFactory#getSOAP11Factory()} to get an instance of
this
-     *             class.
-     */
-    public SOAP11Factory() {
-    }
 }

Modified: webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12Factory.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12Factory.java?rev=1701334&r1=1701333&r2=1701334&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12Factory.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12Factory.java
Fri Sep  4 22:27:44 2015
@@ -19,7 +19,6 @@
 
 package org.apache.axiom.soap.impl.llom.soap12;
 
-import org.apache.axiom.om.OMAbstractFactory;
 import org.apache.axiom.om.impl.llom.factory.OMLinkedListMetaFactory;
 import org.apache.axiom.soap.impl.common.AxiomSOAP12Factory;
 import org.apache.axiom.soap.impl.llom.SOAPFactoryImpl;
@@ -35,11 +34,4 @@ public class SOAP12Factory extends SOAPF
     public SOAP12Factory(OMLinkedListMetaFactory metaFactory) {
         super(metaFactory);
     }
-
-    /**
-     * @deprecated Use {@link OMAbstractFactory#getSOAP12Factory()} to get an instance of
this
-     *             class.
-     */
-    public SOAP12Factory() {
-    }
 }



Mime
View raw message