Class ResourceMethodConfig
- java.lang.Object
-
- org.glassfish.jersey.model.internal.CommonConfig
-
- org.glassfish.jersey.server.model.ResourceMethodConfig
-
- All Implemented Interfaces:
javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
,javax.ws.rs.core.Configuration
,javax.ws.rs.core.FeatureContext
,ExtendedConfig
class ResourceMethodConfig extends CommonConfig
Defaultconfiguration
for resource methods. The only allowed contract types for this configuration are:- ContainerRequestFilter
- ContainerResponseFilter
- ReaderInterceptor
- WriterInterceptor
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Set<java.lang.Class<?>>
allowedContracts
private static java.util.logging.Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description ResourceMethodConfig(java.util.Map<java.lang.String,java.lang.Object> properties)
Create new resource method runtime configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Inflector<ContractProvider.Builder,ContractProvider>
getModelEnhancer(java.lang.Class<?> providerClass)
An extension point that provides a way how to define a custom enhancement/update operation of a contract provider model registration being produced for a given component class.-
Methods inherited from class org.glassfish.jersey.model.internal.CommonConfig
addProperties, configureAutoDiscoverableProviders, configureMetaProviders, equals, getClasses, getComponentBag, getConfiguration, getContracts, getInstances, getProperties, getProperty, getPropertyNames, getRuntimeType, hashCode, isEnabled, isEnabled, isProperty, isRegistered, isRegistered, loadFrom, property, register, register, register, register, register, register, register, register, setProperties
-
-
-
-
Method Detail
-
getModelEnhancer
protected Inflector<ContractProvider.Builder,ContractProvider> getModelEnhancer(java.lang.Class<?> providerClass)
Description copied from class:CommonConfig
An extension point that provides a way how to define a custom enhancement/update operation of a contract provider model registration being produced for a given component class. Default implementation return an enhancer just builds the model.Derived implementations may use this method to e.g. filter out all contracts not applicable in the given configuration context or change the model scope. The returned set of filtered contracts is then used for the actual provider registration.
- Overrides:
getModelEnhancer
in classCommonConfig
- Parameters:
providerClass
- class of the component being registered.- Returns:
- filter for the contracts that being registered for a given component class.
-
-