cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raj Floyd <rajfl...@gmail.com>
Subject Re: CXF Extensions
Date Sun, 20 Oct 2013 10:56:39 GMT
Thanks Andrei, it helped.


On Sat, Oct 19, 2013 at 8:13 PM, Andrei Shakirin <ashakirin@talend.com>wrote:

> Hi,
>
> Some extensions are obtained dynamically using ConfiguredBeanLocator and
> just cached into extensions field.
> Therefore it could be not enough just to look into extensions field of the
> CXFBusImpl class.
> I guess this is also main reason why there is no getAllExtensions() method
> in the Bus interface.
>
> To see which extensions are already cached in extensions field, you can
> use reflection API:
> field = CXFBusImpl.class.getDeclaredField("extensions");
> field.setAccessible(true);
> Map<Class<?>,Object> extensions = (Map<Class<?>,Object>)
> field.get(cxfBusInstance);
>
> Regards,
> Andrei.
>
> > -----Original Message-----
> > From: Raj Floyd [mailto:rajfloyd@gmail.com]
> > Sent: Freitag, 18. Oktober 2013 08:33
> > To: users@cxf.apache.org
> > Subject: CXF Extensions
> >
> > Is there any way, I can get the list of CXF extension beans, loaded by
> Bus,
> > programatically. The 'extensions' field is protected in the CXFBusImpl.
> >
> > Thanks
> >
> > Raj
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message