1. 24 Jul, 2014 4 commits
  2. 23 Jul, 2014 4 commits
  3. 21 Jul, 2014 10 commits
  4. 18 Jul, 2014 1 commit
  5. 17 Jul, 2014 11 commits
  6. 16 Jul, 2014 1 commit
    • Stephane Nicoll's avatar
      Add OnPropertyValueCondition annotation · d7d77f3d
      Stephane Nicoll authored
      This commit adds a new conditional annotation that checks if a
      property has a given value. This allows to replace constructs
      such as
      
      @ConditionalOnExpression("'${app.myProperty:foo}' == 'foo'")
      
      to
      
      @ConditionalOnPropertyValue(property="app.myProperty",
              value="foo", defaultMatch=true)
      
      Which is definitely more verbose but has the following advantages:
      
      1. Works by default if the actual property in the environment is
         a bit different (i.e. my-property)
      2. Works if the value of the property has a diferent case (FoO or
         FOO would match)
      3. Gives a precise reporting in the auto configuration report
      
      The defaultMatch flag is meant to mention that the condition should
      also match if the value is not set; the auto-config report would
      also have an explicit report about it.
      
      Fixes gh-1000
      d7d77f3d
  7. 15 Jul, 2014 9 commits