Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting priority AFTER_DEFAULT for interceptor doesn't work #1311

Closed
slovdahl opened this issue Sep 24, 2013 · 2 comments
Closed

Setting priority AFTER_DEFAULT for interceptor doesn't work #1311

slovdahl opened this issue Sep 24, 2013 · 2 comments
Labels

Comments

@slovdahl
Copy link
Contributor

Even if I override the priority() method my interceptor is executed before the default ones.

@Override
public PRIORITY priority() {
    return InvokationOrder.AFTER_DEFAULT;
}

The reason is simple: the default interceptors are always added last to the list of interceptors and never repositioned.

@jfarcand
Copy link
Member

How do you add your interceptor? That's probably why it doesn't work.

@slovdahl
Copy link
Contributor Author

I define them in web.xml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants