Replies: 2 comments 4 replies
-
I also tried with an Interceptor instead of a Filter, it doesn't work. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Just to add, I tested this on 2.11.1.Final and the behaviour is still the same. I, similarly, try to implement a dynamic filter and having the custom annotation on the Interface isn't an option. If I duplicate the @fenix-hub did you manage to find a proper solution here? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I'm trying implementing a custom Filter but it is not working as expected.
I've got a Parent resource defined as an interface like so
And a sub-resource implementing my interface
I've created
MyAnnotation
likeand a ContainerResponseFilter to handle this with name binding
If
@MyAnnotation
is applyed to the method in the class implementing the interface (like the example I'm showing) it is completely ignored. But if the annotation is applied inside the interface itself, it works.Since other annotations, like
@RolesAllowed
or@DenyAll
are working in the sub-resource, i'm expecting my annotation to work too. Is there something I'm missing?Beta Was this translation helpful? Give feedback.
All reactions