[jax-rs-spec users] [jsr339-experts] service locators and class-level @Path

From: Bill Burke <>
Date: Mon, 20 Feb 2012 14:34:26 -0500

i have a bug from a user that I"m not sure its a bug or not because the
spec isn't clear:

The spec allows a service locator that has no @Path annotation on the class:

public class MyLocator {

    public String foo() {..}

Now, if this class has a @Path on it, is that @Path ignored or not when

public class MyLocator {

   public String foo() {...}

public class MyService {

    public MyLocator getLocator() {...}


So, to get to call teh foo() method is the path "/test/locator/abc" or
/test/locator"? Is the class level @Path ignored or not?

Bill Burke
JBoss, a division of Red Hat