You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by gl...@apache.org on 2002/03/22 17:28:48 UTC

cvs commit: xml-axis/java/src/javax/xml/soap MessageFactory.java SOAPConnectionFactory.java SOAPElementFactory.java

glyn        02/03/22 08:28:48

  Modified:    java/src/javax/xml/soap MessageFactory.java
                        SOAPConnectionFactory.java SOAPElementFactory.java
  Log:
  Make factories use their own constants.
  
  Note: to be useful in Axis, the default factory class names should refer to
  Axis classes rather than Sun classes.
  
  Revision  Changes    Path
  1.3       +2 -3      xml-axis/java/src/javax/xml/soap/MessageFactory.java
  
  Index: MessageFactory.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/javax/xml/soap/MessageFactory.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MessageFactory.java	29 Jan 2002 01:52:45 -0000	1.2
  +++ MessageFactory.java	22 Mar 2002 16:28:48 -0000	1.3
  @@ -151,9 +151,8 @@
       public static MessageFactory newInstance() throws SOAPException {
   
           try {
  -            return (MessageFactory) FactoryFinder.find(
  -                "javax.xml.soap.MessageFactory",
  -                "com.sun.xml.messaging.soap.MessageFactoryImpl");
  +            return (MessageFactory) FactoryFinder.
  +                find(MESSAGE_FACTORY_PROPERTY, DEFAULT_MESSAGE_FACTORY);
           } catch (Exception exception) {
               throw new SOAPException(
                   "Unable to create message factory for SOAP: "
  
  
  
  1.2       +2 -3      xml-axis/java/src/javax/xml/soap/SOAPConnectionFactory.java
  
  Index: SOAPConnectionFactory.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/javax/xml/soap/SOAPConnectionFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SOAPConnectionFactory.java	25 Jan 2002 16:30:07 -0000	1.1
  +++ SOAPConnectionFactory.java	22 Mar 2002 16:28:48 -0000	1.2
  @@ -71,9 +71,8 @@
       public static SOAPConnectionFactory newInstance() throws SOAPException {
   
           try {
  -            return (SOAPConnectionFactory) FactoryFinder.find(
  -                "javax.xml.soap.SOAPConnectionFactory",
  -                "com.sun.xml.messaging.client.p2p.HttpSOAPConnectionFactory");
  +            return (SOAPConnectionFactory) FactoryFinder.
  +                find(SF_PROPERTY, DEFAULT_SOAP_CONNECTION_FACTORY);
           } catch (Exception exception) {
               throw new SOAPException("Unable to create SOAP connection factory: "
                                       + exception.getMessage());
  
  
  
  1.3       +2 -3      xml-axis/java/src/javax/xml/soap/SOAPElementFactory.java
  
  Index: SOAPElementFactory.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/javax/xml/soap/SOAPElementFactory.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SOAPElementFactory.java	29 Jan 2002 01:52:45 -0000	1.2
  +++ SOAPElementFactory.java	22 Mar 2002 16:28:48 -0000	1.3
  @@ -124,9 +124,8 @@
       public static SOAPElementFactory newInstance() throws SOAPException {
   
           try {
  -            return (SOAPElementFactory) FactoryFinder.find(
  -                "javax.xml.soap.SOAPElementFactory",
  -                "com.sun.xml.messaging.soap.SOAPElementFactoryImpl");
  +            return (SOAPElementFactory) FactoryFinder.find(SEF_PROPERTY,
  +                                                           DEFAULT_SEF);
           } catch (Exception exception) {
               throw new SOAPException("Unable to create SOAP Element Factory: "
                                       + exception.getMessage());