users@jax-rs-spec.java.net

[jax-rs-spec users] _at_Logged deep binding

From: Alex Rojkov <alex_at_caucho.com>
Date: Mon, 4 Feb 2013 18:59:46 -0800

Hi All,

Given the mapping below, should LoggingFilter get invoked?
 
@Provider
@Logged
class LoggingFilter implements ContainerRequestFilter,
                               ContainerResponseFilter {
    …
}

@Path("/")
public class MyResourceClass {
    @Path("{name}")
    public Foo hello(@PathParam("name") String name) {
        return new FooBean(name);
    }
}

public interface Foo {
}

public class FooBean implements Foo {
    @Logged
    @GET
    public String hello() {
        return "FooBean[" + name + "]";
    }
}

Thanks,
Alex