cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1521953 - /cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/ClientFactoryBean.java
Date Wed, 11 Sep 2013 17:56:17 GMT
Author: dkulp
Date: Wed Sep 11 17:56:16 2013
New Revision: 1521953

URL: http://svn.apache.org/r1521953
Log:
[CXF-5271] Fix when the CLIENT_CREATED event is fired

Modified:
    cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/ClientFactoryBean.java

Modified: cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/ClientFactoryBean.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/ClientFactoryBean.java?rev=1521953&r1=1521952&r2=1521953&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/ClientFactoryBean.java
(original)
+++ cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/ClientFactoryBean.java
Wed Sep 11 17:56:16 2013
@@ -86,8 +86,9 @@ public class ClientFactoryBean extends A
             getServiceFactory().getProperties().putAll(properties);
         }
         Client client = null;
+        Endpoint ep = null;
         try {
-            Endpoint ep = createEndpoint();
+            ep = createEndpoint();
             applyProperties(ep);
             client = createClient(ep);
             initializeAnnotationInterceptors(ep, getServiceClass());
@@ -97,13 +98,12 @@ public class ClientFactoryBean extends A
             throw new ServiceConstructionException(e);
         }
         applyFeatures(client);
+        this.getServiceFactory().sendEvent(FactoryBeanListener.Event.CLIENT_CREATED, client,
ep);
         return client;
     }
 
     protected Client createClient(Endpoint ep) {
-        Client client = new ClientImpl(getBus(), ep, getConduitSelector());
-        this.getServiceFactory().sendEvent(FactoryBeanListener.Event.CLIENT_CREATED, client,
ep);
-        return client;
+        return new ClientImpl(getBus(), ep, getConduitSelector());
     }
 
     protected void applyFeatures(Client client) {



Mime
View raw message