Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 476051033D for ; Fri, 10 Jan 2014 16:00:08 +0000 (UTC) Received: (qmail 99722 invoked by uid 500); 10 Jan 2014 15:56:25 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 98712 invoked by uid 500); 10 Jan 2014 15:55:29 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 98024 invoked by uid 99); 10 Jan 2014 15:54:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jan 2014 15:54:38 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ashakirin@talend.com designates 64.95.72.243 as permitted sender) Received: from [64.95.72.243] (HELO mxout.myoutlookonline.com) (64.95.72.243) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jan 2014 15:54:32 +0000 Received: from mxout.myoutlookonline.com (localhost [127.0.0.1]) by mxout.myoutlookonline.com (Postfix) with ESMTP id D61D3416833 for ; Fri, 10 Jan 2014 10:54:11 -0500 (EST) X-Virus-Scanned: by SpamTitan at mail.lan Received: from S10HUB002.SH10.lan (unknown [10.110.2.1]) by mxout.myoutlookonline.com (Postfix) with ESMTP id B71964169A0 for ; Fri, 10 Jan 2014 10:54:05 -0500 (EST) Received: from S10BE002.SH10.lan ([::1]) by S10HUB002.SH10.lan ([::1]) with mapi id 14.01.0438.000; Fri, 10 Jan 2014 10:54:05 -0500 From: Andrei Shakirin To: "users@cxf.apache.org" CC: "mandys.inbox@gmail.com" Subject: RE: ServerLifeCycleListener query Thread-Topic: ServerLifeCycleListener query Thread-Index: AQHPCynxKtMKeZj5ykWe8G1OlghQl5p5cAEAgATyIAD//79VsA== Date: Fri, 10 Jan 2014 15:54:03 +0000 Message-ID: References: <66970E18-B2BA-490C-B3EB-993D95F42CF7@gmail.com> <52BD2F2E-1C87-4AEE-AFE7-9F19FE4ED51D@gmail.com> In-Reply-To: <52BD2F2E-1C87-4AEE-AFE7-9F19FE4ED51D@gmail.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [94.216.69.13] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi Mandy, Yep, try org.apache.cxf.jaxrs.provider.ProviderFactory for 2.7.8. Regards, Andrei. > -----Original Message----- > From: Mandy Warren [mailto:mandys.inbox@gmail.com] > Sent: Freitag, 10. Januar 2014 15:43 > To: users@cxf.apache.org > Subject: Re: ServerLifeCycleListener query >=20 > It looks like this class exists on the trunk but not in 2.7.8 cxf version= we are > using, is there an alternative? >=20 > Many thanks > Mandy >=20 > Sent from a mobile device >=20 > > On 7 Jan 2014, at 11:11, Sergey Beryozkin wrote: > > > > Hi Mandy > > > > Happy New Year to you too ! > > You can try the following: > > > > import org.apache.cxf.jaxrs.provider.ServerProviderFactory; > > > > Endpoint e =3D server.getEndpoint(); > > // I don't have an access to my computer right now, there should be a > > way to get to the endpoint from Server interface > > > > ServerProviderFactory factory =3D (ServerProviderFactory)e.get( > > ServerProviderFactory.class.getName()); > > factory.registerUserProviders(list); > > // factory.registerUserProvider(object); > > > > This should do it > > Cheers, Sergey > > > > > > On Mon, Jan 6, 2014 at 11:54 PM, Mandy Warren > wrote: > > > >> > >> Hi, > >> > >> Happy New Year :-) > >> > >> I have written a class which implements ServerLifeCycleListener and > >> registers a number of interceptors which are applicable to all my serv= ices. > >> I was just wondering if there was any way to also register JAXRS > >> providers using this mechanism? > >> > >> Many thanks > >> > >> Mandy > >> > >> Sent from a mobile device > > > > > > > > -- > > Sergey Beryozkin > > > > http://sberyozkin.blogspot.com > > Talend - http://www.talend.com