public class JGitEnvironmentRepository extends AbstractScmEnvironmentRepository implements EnvironmentRepository, SearchPathLocator, org.springframework.beans.factory.InitializingBean
EnvironmentRepository
backed by a single git repository.SearchPathLocator.Locations
logger
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) |
findOne
createBaseDir, getBasedir, getEnvironment, getPassword, getSearchLocations, getSearchPaths, getUri, getUsername, getWorkingDirectory, setBasedir, setEnvironment, setPassword, setResourceLoader, setSearchPaths, setUri, setUsername
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findOne
public 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 SearchPathLocator
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public boolean shouldPull(org.eclipse.jgit.api.Git git) throws org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.GitAPIException
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.