You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "KARR, DAVID (ATTSI)" <dk...@att.com> on 2011/02/21 21:07:11 UTC
What do I replace "JAXRSServerFactoryBean.setServiceBeans()" with?
Using CXF 2.3.2.
I'm cloning some old code I had for an older CXF-using project. I had a
unit test using JAXRSServerFactoryBean. It used to call
"setServiceBeans()", passing my controller bean. It appears this method
was removed in a later release. What should I be calling instead?
Also, I see that JAXRSServerFactoryBean isn't in the standard doc set,
but it is in the javadoc on the web site. Is there a download package
that includes the javadoc for this class?
Re: What do I replace "JAXRSServerFactoryBean.setServiceBeans()" with?
Posted by Daniel Kulp <dk...@apache.org>.
On Monday 21 February 2011 3:07:11 PM KARR, DAVID (ATTSI) wrote:
> Using CXF 2.3.2.
>
> I'm cloning some old code I had for an older CXF-using project. I had a
> unit test using JAXRSServerFactoryBean. It used to call
> "setServiceBeans()", passing my controller bean. It appears this method
> was removed in a later release. What should I be calling instead?
It actually had to be renamed due to it confusing Spring due to two methods
having the same name but "similar" parameters. The
setServiceBeans(List<Object>) is one option where you could do:
setServiceBeans(Collections.singletonList(obj))
or use:
setServiceBeanObjects(obj);
which is the newly renamed method.
> Also, I see that JAXRSServerFactoryBean isn't in the standard doc set,
> but it is in the javadoc on the web site. Is there a download package
> that includes the javadoc for this class?
The javadoc jar at:
http://repo2.maven.org/maven2/org/apache/cxf/cxf-bundle/2.3.2/
has EVERYTHING.
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com