What are the different ways that a ResourceFilter can be registered? Can I
set one up in a Spring context? I have a ContainerRequestFilter which is a
Spring bean and is currently applied to my resource classes using the
@ResourceFilters annotation. I'd like to break that coupling in the resource
class, and configuring the filters in the web.xml isn't a viable solution.
I've seen some discussion that seemed to imply that a ResourceFilterFactory
might be detected and used if wired up as a Spring bean, but this doesn't
seem to work, either.