Fix social property binding

Update Spring Social auto-configurations to read properties using
the `dashed` notation and with the appropriate prefixes. This allows
properties to be specified in any of the relaxed forms.

Also minor refactor to extract common logic to a new
SocialAutoConfigurerAdapter base class.

See gh-941
This commit is contained in:
Phillip Webb
2014-05-28 17:22:47 +01:00
parent 5df52d3e94
commit 7fd26a556d
9 changed files with 109 additions and 70 deletions

View File

@@ -25,7 +25,7 @@ import org.springframework.boot.cli.compiler.DependencyCustomizer;
/**
* {@link CompilerAutoConfiguration} for Spring Social Facebook.
*
*
* @author Craig Walls
* @since 1.1.0
*/

View File

@@ -25,7 +25,7 @@ import org.springframework.boot.cli.compiler.DependencyCustomizer;
/**
* {@link CompilerAutoConfiguration} for Spring Social LinkedIn.
*
*
* @author Craig Walls
* @since 1.1.0
*/

View File

@@ -25,7 +25,7 @@ import org.springframework.boot.cli.compiler.DependencyCustomizer;
/**
* {@link CompilerAutoConfiguration} for Spring Social Twitter.
*
*
* @author Craig Walls
* @since 1.1.0
*/
@@ -42,7 +42,7 @@ public class SpringSocialTwitterCompilerAutoConfiguration extends
throws CompilationFailedException {
dependencies
.ifAnyMissingClasses("org.springframework.social.twitter.api.Twitter")
.add("spring-boot-starter-social-twitter");
.add("spring-boot-starter-social-twitter");
}
@Override