We can use bean references and add through this method addFilter(Filter filter, String urlPattern). In order to get urlPattern, I think, we should have DropwizardFilter that is extended from Filter and provide getUrlPattern method. How do you think?