Class ConfigurationModel<CONFIG extends org.eclipse.microprofile.config.Config>

  • Type Parameters:
    CONFIG - type of MP configuration impl
    All Implemented Interfaces:
    jakarta.ws.rs.core.Configuration, ExtendedConfig, ExternalConfigurationModel<CONFIG>

    public class ConfigurationModel<CONFIG extends org.eclipse.microprofile.config.Config>
    extends Object
    implements ExternalConfigurationModel<CONFIG>
    Generic class which implements default properties provider's logic and wraps not used methods from ExtConfig
    • Constructor Detail

      • ConfigurationModel

        public ConfigurationModel​(CONFIG config)
    • Method Detail

      • getValueFromConfig

        public Object getValueFromConfig​(String name)
        Allows ancestors to work with native configuration providers
        Parameters:
        name - property name
        Returns:
        property's value if any
      • getRuntimeType

        public jakarta.ws.rs.RuntimeType getRuntimeType()
        Specified by:
        getRuntimeType in interface jakarta.ws.rs.core.Configuration
      • getProperties

        public Map<String,​Object> getProperties()
        Specified by:
        getProperties in interface jakarta.ws.rs.core.Configuration
      • getProperty

        public Object getProperty​(String name)
        Specified by:
        getProperty in interface jakarta.ws.rs.core.Configuration
      • getPropertyNames

        public Collection<String> getPropertyNames()
        Specified by:
        getPropertyNames in interface jakarta.ws.rs.core.Configuration
      • isEnabled

        public boolean isEnabled​(jakarta.ws.rs.core.Feature feature)
        Specified by:
        isEnabled in interface jakarta.ws.rs.core.Configuration
      • isEnabled

        public boolean isEnabled​(Class<? extends jakarta.ws.rs.core.Feature> featureClass)
        Specified by:
        isEnabled in interface jakarta.ws.rs.core.Configuration
      • isRegistered

        public boolean isRegistered​(Object component)
        Specified by:
        isRegistered in interface jakarta.ws.rs.core.Configuration
      • isRegistered

        public boolean isRegistered​(Class<?> componentClass)
        Specified by:
        isRegistered in interface jakarta.ws.rs.core.Configuration
      • getContracts

        public Map<Class<?>,​Integer> getContracts​(Class<?> componentClass)
        Specified by:
        getContracts in interface jakarta.ws.rs.core.Configuration
      • getClasses

        public Set<Class<?>> getClasses()
        Specified by:
        getClasses in interface jakarta.ws.rs.core.Configuration
      • getInstances

        public Set<Object> getInstances()
        Specified by:
        getInstances in interface jakarta.ws.rs.core.Configuration