@SpringBootApplication(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,org.springframework.boot.actuate.autoconfigure.MetricFilterAutoConfiguration.class})
@EnableJpaRepositories(value="selfservice.dao")
public class Application
extends org.springframework.boot.context.web.SpringBootServletInitializer
| Constructor and Description |
|---|
Application() |
| Modifier and Type | Method and Description |
|---|---|
ServiceRegistry |
classPathServiceRegistry(String singleTenantsConfigPath) |
protected org.springframework.boot.builder.SpringApplicationBuilder |
configure(org.springframework.boot.builder.SpringApplicationBuilder application) |
CrmService |
crmService(LmngIdentifierDao lmngIdentifierDao,
String endpoint) |
Csa |
csaClient() |
JiraClient |
jiraClient(String baseUrl,
String username,
String password,
String projectKey) |
LicenseContactPersonService |
licenseContactPersonService(String contentFileLocation) |
org.springframework.web.servlet.LocaleResolver |
localeResolver() |
static void |
main(String[] args) |
CrmService |
mockCrmService() |
JiraClient |
mockJiraClient() |
PdpService |
mockPdpService() |
VootClient |
mockVootClient(org.springframework.core.env.Environment environment) |
PdpService |
pdpService(String server,
String username,
String password) |
Sab |
sab(HttpClientTransport httpClientTransport) |
Sab |
sabMock() |
ServiceRegistry |
urlResourceServiceRegistry(String username,
String password,
String idpRemotePath,
String spRemotePath,
int period,
String singleTenantsConfigPath) |
VootClient |
vootClient(org.springframework.core.env.Environment environment,
String accessTokenUri,
String clientId,
String clientSecret,
String spaceDelimitedScopes,
String serviceUrl) |
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 public Csa csaClient()
@Bean @Profile(value="!dev") public Sab sab(HttpClientTransport httpClientTransport)
@Bean @Profile(value="dev") public Sab sabMock()
@Bean @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 @Profile(value="dev") public VootClient mockVootClient(org.springframework.core.env.Environment environment)
@Bean @Profile(value="!dev") public ServiceRegistry urlResourceServiceRegistry(@Value(value="${metadata.username}") String username, @Value(value="${metadata.password}") String password, @Value(value="${metadata.idpRemotePath}") String idpRemotePath, @Value(value="${metadata.spRemotePath}") String spRemotePath, @Value(value="${period.metadata.refresh.minutes}") int period, @Value(value="${singleTenants.config.path}") String singleTenantsConfigPath) throws IOException
IOException@Bean @Profile(value="dev") public ServiceRegistry classPathServiceRegistry(@Value(value="${singleTenants.config.path}") String singleTenantsConfigPath) throws Exception
Exception@Bean @Profile(value="!dev") public JiraClient jiraClient(@Value(value="${jiraBaseUrl}") String baseUrl, @Value(value="${jiraUsername}") String username, @Value(value="${jiraPassword}") String password, @Value(value="${jiraProjectKey}") String projectKey)
@Bean @Profile(value="dev") public JiraClient mockJiraClient()
@Bean @Profile(value="!dev") public CrmService crmService(LmngIdentifierDao lmngIdentifierDao, @Value(value="${crmServiceClassEndpoint}") String endpoint)
@Bean @Profile(value="dev") public CrmService mockCrmService()
@Bean public LicenseContactPersonService licenseContactPersonService(@Value(value="${licenseContactPerson.config.path}") String contentFileLocation)
@Bean @Profile(value="!dev") public PdpService pdpService(@Value(value="${pdp.server}") String server, @Value(value="${pdp.username}") String username, @Value(value="${pdp.password}") String password)
@Bean @Profile(value="dev") public PdpService mockPdpService()
Copyright © 2012–2017 Pivotal Software, Inc.. All rights reserved.