On Mar 5, 2013, at 12:48 PM, Sergey Beryozkin <sberyozkin_at_talend.com> wrote:
> Hi
>
> Is it valid to have
>
> @PreMatch
> @A
> public class MyFilter implements ContainerRequestFiler {
> }
>
> where @A would bind MyFilter to some resource (method) in a post-match phase ?
> Or does @PreMatch means that MyFilter can only ever be executed in a pre-match phase ?
IMO we should only apply filters annotated with @PreMatching in the pre-match phase and ignore any name bound annotations. I will update the @PreMatch javadoc accordingly.
Marek
>
> Cheers, Sergey
>
>