Interface ConfigurationOverrideMultiplexer

    • Method Detail

      • isAllOverridden

        boolean isAllOverridden​(@NotNull
                                @NotNull String contextPath,
                                @NotNull
                                @NotNull String configName)
        Checks if the whole configuration for the given context path and name is overridden.
        Parameters:
        contextPath - Context path
        configName - Config name
        Returns:
        true if the whole configuration is overridden.
      • overrideProperties

        @Nullable
        @Nullable Map<String,​Object> overrideProperties​(@NotNull
                                                              @NotNull String contextPath,
                                                              @NotNull
                                                              @NotNull String configName,
                                                              @NotNull
                                                              @NotNull Map<String,​Object> properties)
        Override properties for given context path and configuration name.
        Parameters:
        contextPath - Path of context resource for which configuration was resolved
        configName - Configuration name
        properties - Resolved configuration properties
        Returns:
        Overwritten or replaced properties - or null if no override took place
      • overrideProperties

        @Deprecated
        @Nullable
        @Nullable Resource overrideProperties​(@NotNull
                                              @NotNull String contextPath,
                                              @NotNull
                                              @NotNull String configName,
                                              @Nullable
                                              @Nullable Resource configResource)
        Override properties in given configuration resource (if any overrides are defined).
        Parameters:
        contextPath - Context path
        configName - Configuration name
        configResource - Resolved configuration resource
        Returns:
        Resource with overwritten configuration properties - or original configuration resource if no override took place
      • overrideProperties

        @Nullable
        @Nullable Resource overrideProperties​(@NotNull
                                              @NotNull String contextPath,
                                              @NotNull
                                              @NotNull String configName,
                                              @Nullable
                                              @Nullable Resource configResource,
                                              @NotNull
                                              @NotNull ResourceResolver resourceResolver)
        Override properties in given configuration resource (if any overrides are defined).
        Parameters:
        contextPath - Context path
        configName - Configuration name
        configResource - Resolved configuration resource
        resourceResolver - Resource resolver
        Returns:
        Resource with overwritten configuration properties - or original configuration resource if no override took place