-
public interface DynamicFeature
A JAX-RS meta-provider for dynamic registration of post-matching providers during a JAX-RS application setup at deployment time. Dynamic feature is used by JAX-RS runtime to register providers that shall be applied to a particular resource class and method and overrides any annotation-based binding definitions defined on any registered resource filter or interceptor instance.Providers implementing this interface MAY be annotated with
@Provider
annotation in order to be discovered by JAX-RS runtime when scanning for resources and providers. This provider types is supported only as part of the Server API.- Since:
- 2.0
- Author:
- Santiago Pericas-Geertsen, Bill Burke, Marek Potociar
- See Also:
NameBinding
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
configure(ResourceInfo resourceInfo, FeatureContext context)
A callback method called by the JAX-RS runtime during the application deployment to register provider instances or classes in aruntime configuration
scope of a particularresource or sub-resource method
; i.e.
-
-
-
Method Detail
-
configure
void configure(ResourceInfo resourceInfo, FeatureContext context)
A callback method called by the JAX-RS runtime during the application deployment to register provider instances or classes in aruntime configuration
scope of a particularresource or sub-resource method
; i.e. the providers that should be dynamically bound to the method.The registered provider instances or classes are 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 may be ignored by the JAX-RS implementation. In such case a
warning
message must be logged. JAX-RS implementations may support additional provider contracts that can be registered using a dynamic feature concept.Conceptually, this callback method is called during a
resource or sub-resource method
discovery phase (typically once per each discovered resource or sub-resource method) to register provider instances or classes in aconfiguration
scope of each particular method identified by the suppliedresource information
. The responsibility of the feature is to properly update the suppliedconfiguration
context.- Parameters:
resourceInfo
- resource class and method information.context
- configurable resource or sub-resource method-level runtime context associated with theresourceInfo
in which the feature
-
-
Deutsche Übersetzung
Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.
Vielen Dank im Voraus.
Dokument erstellt 11/06/2005, zuletzt geändert 18/08/2025
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-javaee-rf-javax/ws/rs/container/DynamicFeature.html
Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.
Referenzen
Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor dieser Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.