org.springframework.boot.config
Class DefaultProfileDocumentMatcher

java.lang.Object
  extended by org.springframework.boot.config.DefaultProfileDocumentMatcher
All Implemented Interfaces:
YamlProcessor.DocumentMatcher

public class DefaultProfileDocumentMatcher
extends Object
implements YamlProcessor.DocumentMatcher

A YamlProcessor.DocumentMatcher that matches the default profile implicitly but not explicitly (i.e. matches if "spring.profiles" is not found and not otherwise).

Author:
Dave Syer

Constructor Summary
DefaultProfileDocumentMatcher()
           
 
Method Summary
 YamlProcessor.MatchStatus matches(Properties properties)
          Test if the given properties match.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultProfileDocumentMatcher

public DefaultProfileDocumentMatcher()
Method Detail

matches

public YamlProcessor.MatchStatus matches(Properties properties)
Description copied from interface: YamlProcessor.DocumentMatcher
Test if the given properties match.

Specified by:
matches in interface YamlProcessor.DocumentMatcher
Parameters:
properties - the properties to test
Returns:
the status of the match.


Copyright © 2013. All Rights Reserved.