title: Match Filter with specific Method through NameBinding on RESTeasy
body: <p>I am trying to specify a pre-matching filter that is only associated to some of my API calls, by following what the <a href="http://docs.jboss.org/resteasy/docs/3.0-beta-3/userguide/html_single/index.html#d4e1316">RESTeasy documentation</a> suggests. Here is what my code looks like:</p>
  
  <p>Name binding:</p>
  
  <pre><code>@NameBinding
  public @interface ValidateFoo {}
  </code></pre>
  
  <p>Resource:</p>
  
  <pre><code>@Path("/foo/bar")
  @Produces(MediaType.APPLICATION_JSON)
  public class FooBar {
      @GET
      @ValidateFoo
      public Object doStuff() {
          //do stuff
      }
  
      @POST
      public Object doAnotherStuff() {
          //do another stuff
      }
  }
  </code></pre>
  
  <p>Filter:</p>
  
  <pre><code>@ValidateFoo
  @Provider
  @PreMatching
  public class FooValidation implements ContainerRequestFilter {
      @Override
      public void filter(ContainerRequestContext reqContext) throws IOException {
          //validate stuff
      }
  }
  </code></pre>
  
  <p>Problem is: the FooValidation filter runs before <em>every</em> method call (e.g.: before GETs and POSTs to /foo/bar), not only the ones annotated with <code>@ValidateFoo</code> (seems a bug to me). If I remove the <code>@Provider</code> annotation from the filter, it won't run before any call (as expected).</p>
  
  <p>I am seeing this behavior consistently, either using WebLogic or Tomcat. My dependency management is done through Maven, and the RESTeasy version is 3.0-beta-3.</p>
  
  <p>Anyone experiencing/experienced the same behavior? I have seen another user with a similar problem on <a href="https://community.jboss.org/message/777014">JBoss forums</a>, with no luck so far.</p>
  
  <p>UPDATE:
  Still experiencing the same issue with RESTeasy 3.0.1-Final.</p>