Hi Rice On Thu, Jan 20, 2011 at 8:15 AM, Rice Yeh <[email protected]> wrote:
> Hi, > In JAXRSServerFactoryBean, it has methods setServiceClass(...) and > setResourceClasses(...). I just wonder what is the difference b/w service > classes and resource classes? In the JAX-RS spec, I can not find the > definition of service class. > > My apologies, I'm documenting this class right now...At least, thanks to Andy Michalec, some parts of the implementation have been documented properly. This issue has a high priority. factoryBean.setServiceClass(Class) is mainly used by the Spring handler, to deal with the <jaxrs:server @serviceClass="someClass"/> it delegates to setResourceClasses(Class...) which can be used to register multiple root resource classes. I prefer using setServiceClass when dealing with a single root resource/service only Cheers, Sergey > Rice >
