A Feature is a special type of JAX-RS configuration meta-provider. Once a feature is registered,
its configure(FeatureContext) method is invoked during JAX-RS runtime configuration and bootstrapping
phase allowing the feature to further configure the runtime context in which it has been registered.
From within the invoked configure(...) method a feature may provide additional runtime configuration
for the facility or conceptual domain it represents, such as registering additional contract providers,
including nested features and/or specifying domain-specific properties.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the feature was successfully enabled, false
otherwise.configurable context in which the feature should be enabled. context)A call-back method called when the feature is to be enabled in a given runtime configuration scope. |
| configure | back to summary |
|---|---|
| public boolean configure(FeatureContext context) A call-back method called when the feature is to be enabled in a given
runtime configuration scope.
The responsibility of the feature is to properly update the supplied runtime configuration context
and return
Note that under some circumstances the feature may decide not to enable itself, which
is indicated by returning
| |