Class DefaultResourceConfigSortComparator

    • Constructor Detail

      • DefaultResourceConfigSortComparator

        public DefaultResourceConfigSortComparator​(ProfileSet profileSet)
        Private constructor.
        Parameters:
        profileSet - Profile set used to evaluate specificity.
    • Method Detail

      • getSpecificity

        protected double getSpecificity​(ResourceConfig resourceConfig)
        Get the specificity of the ResourceConfig.

        The "specificity" is evaluated based on the selector and target-profile values.

        Parameters:
        resourceConfig - Resource configuration.
        Returns:
        Configuration specificity.