class ResourceMethodConfig extends CommonConfig
configuration
for resource methods.
The only allowed contract types for this configuration are:
Modifier and Type | Field and Description |
---|---|
private static java.util.Set<java.lang.Class<?>> |
allowedContracts |
private static java.util.logging.Logger |
LOGGER |
Constructor and Description |
---|
ResourceMethodConfig(java.util.Map<java.lang.String,java.lang.Object> properties)
Create new resource method runtime configuration.
|
Modifier and Type | Method and 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.
|
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
private static final java.util.logging.Logger LOGGER
private static final java.util.Set<java.lang.Class<?>> allowedContracts
ResourceMethodConfig(java.util.Map<java.lang.String,java.lang.Object> properties)
properties
- inherited properties.protected Inflector<ContractProvider.Builder,ContractProvider> getModelEnhancer(java.lang.Class<?> providerClass)
CommonConfig
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.
getModelEnhancer
in class CommonConfig
providerClass
- class of the component being registered.