axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r557785 - in /webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2: jaxws/ClientConfigurationFactory.java metadata/registry/MetadataFactoryRegistry.java
Date Thu, 19 Jul 2007 21:45:30 GMT
Author: gawor
Date: Thu Jul 19 14:45:29 2007
New Revision: 557785

URL: http://svn.apache.org/viewvc?view=rev&rev=557785
Log:
use FactoryRegistry to lookup ClientConfigurationFactory

Modified:
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/ClientConfigurationFactory.java
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/metadata/registry/MetadataFactoryRegistry.java

Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/ClientConfigurationFactory.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/ClientConfigurationFactory.java?view=diff&rev=557785&r1=557784&r2=557785
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/ClientConfigurationFactory.java
(original)
+++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/ClientConfigurationFactory.java
Thu Jul 19 14:45:29 2007
@@ -24,19 +24,15 @@
 import org.apache.axis2.deployment.DeploymentException;
 import org.apache.axis2.description.AxisService;
 import org.apache.axis2.jaxws.util.Constants;
+import org.apache.axis2.metadata.registry.MetadataFactoryRegistry;
 
 
 /** This class serves as a factory for ConfigurationContexts suitable in the client environment.
*/
 public class ClientConfigurationFactory {
 
-    private static ClientConfigurationFactory instance = new ClientConfigurationFactory();
-
-    protected ClientConfigurationFactory() {
-    }
-
     /** Returns a ClientConfigurationFactory object. */
     public static ClientConfigurationFactory newInstance() {
-        return instance;
+        return (ClientConfigurationFactory)MetadataFactoryRegistry.getFactory(ClientConfigurationFactory.class);
      
     }
 
     /**

Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/metadata/registry/MetadataFactoryRegistry.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/metadata/registry/MetadataFactoryRegistry.java?view=diff&rev=557785&r1=557784&r2=557785
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/metadata/registry/MetadataFactoryRegistry.java
(original)
+++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/metadata/registry/MetadataFactoryRegistry.java
Thu Jul 19 14:45:29 2007
@@ -21,6 +21,7 @@
 import java.util.Hashtable;
 import java.util.Map;
 
+import org.apache.axis2.jaxws.ClientConfigurationFactory;
 import org.apache.axis2.metadata.factory.ResourceFinderFactory;
 
 public class MetadataFactoryRegistry {
@@ -28,6 +29,7 @@
         static {
                 table = new Hashtable<Class,Object>();
                 table.put(ResourceFinderFactory.class, new ResourceFinderFactory());
+                table.put(ClientConfigurationFactory.class, new ClientConfigurationFactory());
         }
         
         /**



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message