public interface Feature
Feature is a special type of configuration meta-provider. Once a feature is registered,
configure(FeatureContext) method is invoked during 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.
Features implementing this interface MAY be annotated with the
annotation in order to be discovered by the runtime when scanning for resources and providers.
Please note that this will only work for server side features. Features in the Client API must
be registered programmatically.
boolean configure(FeatureContext context)
trueif the feature was successfully enabled or
Note that under some circumstances the feature may decide not to enable itself, which
is indicated by returning
false. In such case the configuration context does
not add the feature to the collection of enabled features and a subsequent call to
context- configurable context in which the feature should be enabled.
trueif the feature was successfully enabled,