Class Configuration

  • Direct Known Subclasses:
    CliParser

    public abstract class Configuration
    extends Object
    • Constructor Detail

      • Configuration

        public Configuration()
    • Method Detail

      • getPaths

        protected final Collection<Path> getPaths​(Collection<String> filenames,
                                                  Collection<String> globs)
        Utility method to find all the paths associated to a single configuration (filenames + globs)
        Parameters:
        filenames - collection of specific filenames
        globs - collection of glob specifications, which return no matching paths
        Returns:
        the existing matching paths
      • getIntegration

        protected final Configuration.Integration getIntegration​(String path,
                                                                 List<String> pathTags,
                                                                 Map<String,​? extends Configuration.Integration> paths,
                                                                 Map<String,​? extends Configuration.Integration> lowerCaseTags)
        Utility to find a suitable integration for a route path with given tags.
        Parameters:
        path - the route path to match
        pathTags - any tags associated to that path
        paths - integration paths to use, as a map from path to the defined integration
        lowerCaseTags - integration tags to use, as a map from the tag names in lower case to the defined integrations
        Returns:
        the most suitable integration