1. 31 Aug, 2016 6 commits
  2. 29 Aug, 2016 4 commits
    • Phillip Webb's avatar
      Update @MockBean to support generics · a985a5c8
      Phillip Webb authored
      Update @MockBean and @SpyBean to support field generics. Prior to this
      commit the following fields would fail with a "Duplicate mock
      definition" exception:
      
        @MockBean
        private IdentityProvider<PasswordIdentity> passwordIdentityProvider;
      
        @MockBean
        private IdentityProvider<Oauth2Identity> oauth2IdentityProvider;
      
      Fixes gh-6602
      a985a5c8
    • Phillip Webb's avatar
      Polish · 565ad798
      Phillip Webb authored
      565ad798
    • Phillip Webb's avatar
      Merge branch '1.3.x' · 850141c4
      Phillip Webb authored
      850141c4
    • Phillip Webb's avatar
      Polish · 69e96c62
      Phillip Webb authored
      69e96c62
  3. 28 Aug, 2016 1 commit
  4. 27 Aug, 2016 2 commits
    • Stephane Nicoll's avatar
      Merge branch '1.3.x' · afadac27
      Stephane Nicoll authored
      afadac27
    • Stephane Nicoll's avatar
      Auto-detect fork value in stop goal · 97f15d60
      Stephane Nicoll authored
      So far, one has to set the "fork" value to both the start and stop
      goals. Since they have the same name, sharing them in a global
      configuration element does the trick. However, the plugin also supports
      auto-detection of the fork value according to other parameters:
      typically if an agent or jvm arguments are set, forking will be
      automatically enabled. This is a problem since the stop goal is not aware
      of that.
      
      This commit transmits the value in a property attached to the
      `MavenProject`. That way, the stop goal can retrieve that value and
      apply the same defaults. This has the side effect that specifying the
      fork value isn't necessary anymore.
      
      Closes gh-6747
      97f15d60
  5. 26 Aug, 2016 10 commits
    • Andy Wilkinson's avatar
      cc53f881
    • Andy Wilkinson's avatar
      Merge branch '1.3.x' · 55f6fb94
      Andy Wilkinson authored
      55f6fb94
    • Andy Wilkinson's avatar
    • Andy Wilkinson's avatar
      Merge branch '1.3.x' · 6df279d3
      Andy Wilkinson authored
      6df279d3
    • Andy Wilkinson's avatar
      Improve type determination for factory beans during condition evaluation · 75c1e50c
      Andy Wilkinson authored
      Previously, BeanTypeRegistry did not correctly determine the type
      that would be created by a factory bean if that factory bean was
      returned from a bean method with arguments on a configuration class
      found via component scanning.
      
      The key difference is that bean definitions for bean methods on
      configuration classes found via component scanning use ASM-based
      metadata rather than reflection-based metadata. The ASM-based method
      data does not provide direct access to the Method that will create the
      bean. In this case, BeanTypeRegistry was falling back to looking for
      a method with the matching name and no arguments. Therefore, if
      the bean method had any arguments it would fail to find the method
      and would, therefore, be unable to determine the type of bean
      produced by the factory bean.
      
      This commit updates BeanTypeRegistry to use logic that is very similar
      to Spring Framework's ConstructorResolver's
      resolveFactoryMethodIfPossible method to locate the method that will
      produce the factory bean. It looks for a single method with
      the required name with any number of arguments. If it finds multiple
      methods with the required name and different arguments it returns
      null, just as ConstructorResolver does.
      
      Closes gh-6755
      75c1e50c
    • Stephane Nicoll's avatar
      Merge pull request #6746 from xenoterracide:neo4j-bolt · 62bc955b
      Stephane Nicoll authored
      * pr/6746:
        Polish contribution
        Detect Neo4j bolt driver
      62bc955b
    • Stephane Nicoll's avatar
      Polish contribution · 47c568a2
      Stephane Nicoll authored
      Closes gh-6746
      47c568a2
    • Caleb Cushing's avatar
      Detect Neo4j bolt driver · bb7b789c
      Caleb Cushing authored
      Closes gh-6690
      bb7b789c
    • Stephane Nicoll's avatar
      Restore support for empty persistence unit with fat jars · b9104c93
      Stephane Nicoll authored
      Due to the layout format change in 1.4, Spring Framework is no longer
      able to compute a default persistence unit root URL. If a Spring Boot 1.4
      application has JPA but does not have any entity, the application started
      from a fat jar now fails with a quite cryptic exception.
      
      This commit introduces `ApplicationInfo` as a general replacement for
      the `ApplicationArguments` and `Banner` singleton beans that
      `SpringApplication` registers on startup. `ApplicationInfo` also defines
      the detected "main" `Class` that can be used to compute a last resort
      URL that makes sense.
      
      If such bean is available, `EntityManagerFactoryBuilder` now sets the
      default persistence unit root location, preventing Spring Framework to
      attempt to resolve an unknown location. Note that in our case the
      persistence unit root location is actually useless: given the way the
      persistence unit is created, nothing actually uses it but Hibernate, as a
      compliant JPA provider, has to make sure this setting is set to a valid
      URL nevertheless.
      
      Closes gh-6635
      b9104c93
    • Stephane Nicoll's avatar
      Add FailureAnalyzer for Hikari · 86757efc
      Stephane Nicoll authored
      Hikari can configure both an underlying Driver or DataSource. Spring Boot
      only supports the former so any attempt to trigger the creation of the
      latter will lead to an exception since the auto-configuration has set
      driver-specific field.
      
      This commit adds an analyzer that intercepts such faulty scenario and
      indicate that users should configure Hikari with an underlying DataSource
      themselves.
      
      Closes gh-6568
      86757efc
  6. 25 Aug, 2016 6 commits
  7. 24 Aug, 2016 2 commits
  8. 23 Aug, 2016 9 commits