public class JGitEnvironmentRepository extends AbstractScmEnvironmentRepository implements EnvironmentRepository, SearchPathLocator, org.springframework.beans.factory.InitializingBean
EnvironmentRepository backed by a single git repository.SearchPathLocator.Locationslogger| Constructor and Description |
|---|
JGitEnvironmentRepository(org.springframework.core.env.ConfigurableEnvironment environment) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
String |
getDefaultLabel() |
org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.JGitFactory |
getGitFactory() |
SearchPathLocator.Locations |
getLocations(String application,
String profile,
String label) |
int |
getTimeout() |
boolean |
isCloneOnStart() |
boolean |
isForcePull() |
void |
setCloneOnStart(boolean cloneOnStart) |
void |
setDefaultLabel(String defaultLabel) |
void |
setForcePull(boolean forcePull) |
void |
setGitFactory(org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.JGitFactory gitFactory) |
void |
setTimeout(int timeout) |
boolean |
shouldPull(org.eclipse.jgit.api.Git git) |
findOnecreateBaseDir, getBasedir, getEnvironment, getPassword, getSearchLocations, getSearchPaths, getUri, getUsername, getWorkingDirectory, setBasedir, setEnvironment, setPassword, setResourceLoader, setSearchPaths, setUri, setUsernameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindOnepublic JGitEnvironmentRepository(org.springframework.core.env.ConfigurableEnvironment environment)
public boolean isCloneOnStart()
public void setCloneOnStart(boolean cloneOnStart)
public int getTimeout()
public void setTimeout(int timeout)
public org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.JGitFactory getGitFactory()
public void setGitFactory(org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.JGitFactory gitFactory)
public String getDefaultLabel()
public void setDefaultLabel(String defaultLabel)
public boolean isForcePull()
public void setForcePull(boolean forcePull)
public SearchPathLocator.Locations getLocations(String application, String profile, String label)
getLocations in interface SearchPathLocatorpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic boolean shouldPull(org.eclipse.jgit.api.Git git)
throws org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.GitAPIExceptionCopyright © 2016 Pivotal Software, Inc.. All rights reserved.