users@jsr311.java.net

Annotation inheritance

From: Sergey Beryozkin <sergey.beryozkin_at_iona.com>
Date: Wed, 30 Apr 2008 11:42:42 +0100

Hi,

Does JAX-RS allow for annotations rooted at the interface (as opposed to interface methods) be inherited ?
What about those targeting interface/subclass method parameters ?

For ex :
@Path("/{id}"
interface ServiceInterface {
    void getIt(@PathParam("id") String id);
}

class ServiceInterfaceImpl implements ServiceInterface {}


Can @Path and @PathParam inherited ?


Thanks, Sergey

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland