Interface AutoDiscoverable
-
- All Known Subinterfaces:
ForcedAutoDiscoverable
- All Known Implementing Classes:
JacksonAutoDiscoverable
,JaxbAutoDiscoverable
,LoggingFeatureAutoDiscoverable
,MetaInfServicesAutoDiscoverable
,MonitoringAutodiscoverable
,ServerFiltersAutoDiscoverable
,WadlAutoDiscoverable
public interface AutoDiscoverable
A service provider contract for JAX-RS and Jersey components that need to be automatically discovered and registered inruntime configurations
. A component implementing this contract becomes auto-discoverable by adding a new entry with fully qualified name of its implementation class name to aorg.glassfish.jersey.internal.spi.AutoDiscoverable
file in theMETA-INF/services
directory. Almost all JerseyAutoDiscoverable
implementations haveDEFAULT_PRIORITY
priority
set.
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_PRIORITY
Default common priority of Jersey build-in auto-discoverables.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
configure(javax.ws.rs.core.FeatureContext context)
A call-back method called when an auto-discoverable component is to be configured in a given runtime configuration scope.
-
-
-
Field Detail
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITY
Default common priority of Jersey build-in auto-discoverables. Use lower number on yourAutoDiscoverable
implementation to run it before Jersey auto-discoverables and vice versa.- See Also:
- Constant Field Values
-
-
Method Detail
-
configure
void configure(javax.ws.rs.core.FeatureContext context)
A call-back method called when an auto-discoverable component is to be configured in a given runtime configuration scope.Note that as with
JAX-RS features
, before registering new JAX-RS components in a given configurable context, an auto-discoverable component should verify that newly registered components are not already registered in the configurable context.- Parameters:
context
- configurable context in which the auto-discoverable should be configured.
-
-