Hi all,
as reported by [1], with 3.0.0-milestone2 it is possible to enable JAX-RS services auto-discovery by setting:

<jaxrs:server address="/customers" basePackages="a.b.c"/>

First question: are packages in 'basePackages' to be considered subtree roots or leaf nodes? I.e. can classes to be auto-discovered be placed, say, in a.b.c.d?

Moreover, I've been playing a bit with such feature, but found that only concrete classes (not interfaces) annotated with @Path are actually recognized: is this correct?

Does this mean that there is no way to let the auto-discovery mechanism deal with a situation where an annotated service interface is defined - for shared usage with client code - and a concrete non-annotated class implementing that interface are provided?

Say, for example:

@Path("/")
@Produces(MediaType.APPLICATION_ATOM_XML)
public interface Core {
...
}

then, in a different package:

public class CoreImpl implements Core {
...
}

TIA
Regards.

[1] https://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-Auto-discoveryofrootresourcesandproviders

--
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Involved at The Apache Software Foundation:
member, Syncope PMC chair, Cocoon PMC, Olingo PMC
http://people.apache.org/~ilgrosso/

Reply via email to