Class ResourceConfig.ImmutableState

  • All Implemented Interfaces:
    javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>, javax.ws.rs.core.Configuration, javax.ws.rs.core.FeatureContext, ExtendedConfig, ServerConfig
    Enclosing class:
    ResourceConfig

    private static final class ResourceConfig.ImmutableState
    extends ResourceConfig.State
    • Method Detail

      • addProperties

        public ResourceConfig.State addProperties​(java.util.Map<java.lang.String,​?> properties)
        Description copied from class: CommonConfig
        Add properties to ResourceConfig. If any of the added properties exists already, he values of the existing properties will be replaced with new values.
        Overrides:
        addProperties in class CommonConfig
        Parameters:
        properties - properties to add.
        Returns:
        updated configuration instance.
      • property

        public ResourceConfig.State property​(java.lang.String name,
                                             java.lang.Object value)
        Specified by:
        property in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
        Overrides:
        property in class CommonConfig
      • register

        public ResourceConfig.State register​(java.lang.Class<?> componentClass)
        Specified by:
        register in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
        Overrides:
        register in class CommonConfig
      • register

        public ResourceConfig.State register​(java.lang.Class<?> componentClass,
                                             int bindingPriority)
        Specified by:
        register in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
        Overrides:
        register in class CommonConfig
      • register

        public ResourceConfig.State register​(java.lang.Class<?> componentClass,
                                             java.lang.Class<?>... contracts)
        Specified by:
        register in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
        Overrides:
        register in class CommonConfig
      • register

        public ResourceConfig.State register​(java.lang.Class<?> componentClass,
                                             java.util.Map<java.lang.Class<?>,​java.lang.Integer> contracts)
        Specified by:
        register in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
        Overrides:
        register in class CommonConfig
      • register

        public ResourceConfig.State register​(java.lang.Object component)
        Specified by:
        register in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
        Overrides:
        register in class CommonConfig
      • register

        public ResourceConfig.State register​(java.lang.Object component,
                                             int bindingPriority)
        Specified by:
        register in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
        Overrides:
        register in class CommonConfig
      • register

        public ResourceConfig.State register​(java.lang.Object component,
                                             java.lang.Class<?>... contracts)
        Specified by:
        register in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
        Overrides:
        register in class CommonConfig
      • register

        public ResourceConfig.State register​(java.lang.Object component,
                                             java.util.Map<java.lang.Class<?>,​java.lang.Integer> contracts)
        Specified by:
        register in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
        Overrides:
        register in class CommonConfig
      • setProperties

        public ResourceConfig.State setProperties​(java.util.Map<java.lang.String,​?> properties)
        Description copied from class: CommonConfig
        Set the configured properties to the provided map of properties.
        Overrides:
        setProperties in class CommonConfig
        Parameters:
        properties - new map of properties to be set.
        Returns:
        updated configuration instance.
      • configureAutoDiscoverableProviders

        public void configureAutoDiscoverableProviders​(InjectionManager injectionManager,
                                                       java.util.Collection<AutoDiscoverable> autoDiscoverables,
                                                       boolean forcedOnly)
        Description copied from class: CommonConfig
        Configure auto-discoverables in the injection manager.
        Overrides:
        configureAutoDiscoverableProviders in class CommonConfig
        Parameters:
        injectionManager - injection manager in which the auto-discoverables should be configured.
        autoDiscoverables - list of registered auto discoverable components.
        forcedOnly - defines whether all or only forced auto-discoverables should be configured.