Hi,
in 6.5.3 in the dynamic binding example there is the line
configurable.register(new LoggingFilter());
I find it a bit odd that on the one hand, the runtime usually (set aside other DI scopes) will instantiate one instance for every provider. On the other hand, for dynamic binding new instances seem to have to be created.
Is there a JAX-RS construct already to register the global e.g. LoggingFilter instance? And am I just not seeing the forrest for the trees (again)?
If so, I'd suggest showing that in the example.
If there isn't such a construct, should we have one? Or would one have to use other DI mechanisms instead?
E.g. with CDI I could do
@Inject
LoggingFilter loggingFilter;
...
configurable.register(loggingFilter);
But having this provided by JAX-RS natively seems nicer.
I guess what I am actually asking for is to add lookup methods for Filters and Interceptors to the Providers interface, right?
Jan