|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- Filter or interceptor type provided by the dynamic binder.public interface DynamicBinder<T>
A dynamic (post-matching
) filter or interceptor binding
provider.
Dynamic binding provider is used by JAX-RS runtime to provide a the filter or
interceptor that shall be applied to a particular resource class and method and
overrides any annotation-based binding definitions defined on the returned
resource filter or interceptor instance.
@Provider
annotation to be discovered
by JAX-RS runtime. This type of providers is supported only as part of the
Server API.
NameBinding
Method Summary | |
---|---|
T |
getBoundProvider(ResourceInfo resourceInfo)
Get the filter or interceptor instance or class that should be bound to the particular resource method. |
Method Detail |
---|
T getBoundProvider(ResourceInfo resourceInfo)
null
.
The returned provider instance or class is expected to be implementing one or more of the following interfaces:
A provider instance or class that does not implement any of the interfaces above is ignored and awarning
message is logged.
If the returned object is a Class<P>
, JAX-RS runtime will
resolve the class to an instance of type P
by first looking at the
already registered provider instances.
If there is already a provider instance of the class registered, the JAX-RS
runtime will use it, otherwise a new provider instance of the class will be
instantiated, injected and registered by the JAX-RS runtime.
In case the resolving the returned provider class to an instance fails for
any reason, the dynamically bound provider class is ignored and a
warning
message is logged.
The method is called during a (sub)resource method discovery phase (typically
once per each discovered (sub)resource method) to return a filter instance
that should be bound to a particular (sub)resource method identified by the
supplied resource information
.
resourceInfo
- resource class and method information.
null
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |