@SpringBootApplication
@EnableAutoConfiguration(exclude={org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration.class,org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration.class,org.springframework.boot.actuate.autoconfigure.TraceWebFilterAutoConfiguration.class,org.springframework.boot.actuate.autoconfigure.TraceRepositoryAutoConfiguration.class})
public class Application
extends org.springframework.boot.context.web.SpringBootServletInitializer
| Constructor and Description |
|---|
Application() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.boot.builder.SpringApplicationBuilder |
configure(org.springframework.boot.builder.SpringApplicationBuilder application) |
org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer |
containerCustomizer() |
Csa |
csaClient(String csaBaseLocation,
String clientKey,
String clientSecret,
String accessTokenUrl) |
Csa |
csaMockClient() |
org.springframework.web.servlet.LocaleResolver |
localeResolver() |
static void |
main(String[] args) |
VootClient |
mockVootClient(org.springframework.core.env.Environment environment) |
Sab |
sab(HttpClientTransport httpClientTransport) |
Sab |
sabMock() |
VootClient |
vootClient(org.springframework.core.env.Environment environment,
String accessTokenUri,
String clientId,
String clientSecret,
String spaceDelimitedScopes,
String serviceUrl) |
org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter |
webMvcConfigurerAdapter(String statsBaseUrl,
String statsClientId,
String statsScope,
String statsRedirectUri) |
protected org.springframework.boot.builder.SpringApplicationBuilder configure(org.springframework.boot.builder.SpringApplicationBuilder application)
configure in class org.springframework.boot.context.web.SpringBootServletInitializer@Bean public org.springframework.web.servlet.LocaleResolver localeResolver()
@Bean
@Autowired
public org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter webMvcConfigurerAdapter(@Value(value="${statsBaseUrl}")
String statsBaseUrl,
@Value(value="${statsClientId}")
String statsClientId,
@Value(value="${statsScope}")
String statsScope,
@Value(value="${statsRedirectUri}")
String statsRedirectUri)
@Bean @Autowired @Profile(value="!dev") public Csa csaClient(@Value(value="${csa.base.url}") String csaBaseLocation, @Value(value="${csa.client.key}") String clientKey, @Value(value="${csa.client.secret}") String clientSecret, @Value(value="${csa.oauth2.accessTokenUrl}") String accessTokenUrl)
@Bean @Autowired @Profile(value="dev") public Csa csaMockClient()
@Bean @Autowired @Profile(value="!dev") public Sab sab(HttpClientTransport httpClientTransport)
@Bean @Autowired @Profile(value="dev") public Sab sabMock()
@Bean @Autowired @Profile(value="!dev") public VootClient vootClient(org.springframework.core.env.Environment environment, @Value(value="${voot.accessTokenUri}") String accessTokenUri, @Value(value="${voot.clientId}") String clientId, @Value(value="${voot.clientSecret}") String clientSecret, @Value(value="${voot.scopes}") String spaceDelimitedScopes, @Value(value="${voot.serviceUrl}") String serviceUrl)
@Bean @Autowired @Profile(value="dev") public VootClient mockVootClient(org.springframework.core.env.Environment environment)
@Bean public org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer containerCustomizer()
Copyright © 2012–2015 Pivotal Software, Inc.. All rights reserved.