Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F27BB10CB3 for ; Wed, 11 Sep 2013 17:56:42 +0000 (UTC) Received: (qmail 52738 invoked by uid 500); 11 Sep 2013 17:56:42 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 52615 invoked by uid 500); 11 Sep 2013 17:56:40 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 52370 invoked by uid 99); 11 Sep 2013 17:56:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Sep 2013 17:56:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Sep 2013 17:56:37 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 49ABC238888A; Wed, 11 Sep 2013 17:56:17 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130911175617.49ABC238888A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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) {