org.springframework.boot.yaml

Class ArrayDocumentMatcher

  • All Implemented Interfaces:
    org.springframework.beans.factory.config.YamlProcessor.DocumentMatcher


    public class ArrayDocumentMatcher
    extends Object
    implements org.springframework.beans.factory.config.YamlProcessor.DocumentMatcher
    Matches a document containing a given key and where the value of that key is an array containing one of the given values, or where one of the values matches one of the given values (interpreted as regexes).
    Author:
    Dave Syer
    • Constructor Detail

      • ArrayDocumentMatcher

        public ArrayDocumentMatcher(String key,
                                    String... patterns)
    • Method Detail

      • matches

        public org.springframework.beans.factory.config.YamlProcessor.MatchStatus matches(Properties properties)
        Specified by:
        matches in interface org.springframework.beans.factory.config.YamlProcessor.DocumentMatcher

Copyright © 2015 Pivotal Software, Inc.. All rights reserved.