Package org.glassfish.jersey.logging
Class LoggingFeatureAutoDiscoverable
- java.lang.Object
-
- org.glassfish.jersey.logging.LoggingFeatureAutoDiscoverable
-
- All Implemented Interfaces:
AutoDiscoverable
@Priority(2000) public final class LoggingFeatureAutoDiscoverable extends java.lang.Object implements AutoDiscoverable
Auto-discoverable class that registersLoggingFeature
based on configuration properties.Feature is registered if any of the common properties (see
LoggingFeature
) is set or any of the client properties is set and context'sRuntimeType
isRuntimeType.CLIENT
or any of the server properties is set and context'sRuntimeType
isRuntimeType.SERVER
.The registration does not occur if the feature is already registered or auto-discoverable mechanism is disabled.
- Since:
- 2.23
-
-
Field Summary
-
Fields inherited from interface org.glassfish.jersey.internal.spi.AutoDiscoverable
DEFAULT_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description LoggingFeatureAutoDiscoverable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
clientConfigured(java.util.Map properties)
private boolean
commonPropertyConfigured(java.util.Map properties)
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.private boolean
serverConfigured(java.util.Map properties)
-
-
-
Method Detail
-
configure
public void configure(javax.ws.rs.core.FeatureContext context)
Description copied from interface:AutoDiscoverable
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.- Specified by:
configure
in interfaceAutoDiscoverable
- Parameters:
context
- configurable context in which the auto-discoverable should be configured.
-
commonPropertyConfigured
private boolean commonPropertyConfigured(java.util.Map properties)
-
clientConfigured
private boolean clientConfigured(java.util.Map properties)
-
serverConfigured
private boolean serverConfigured(java.util.Map properties)
-
-