public class MultipleJGitEnvironmentRepository extends JGitEnvironmentRepository
EnvironmentRepository that based on one or more git repositories. Can be
configured just like a single JGitEnvironmentRepository, for the "default"
properties, and then additional repositories can be registered by name. The simplest
form of the registration is just a map from name to uri (plus credentials if needed),
where each app has its own git repository. As well as a name you can provide a pattern
that matches on the application name (or even a list of patterns). Each sub-repository
additionally can have its own search paths (subdirectories inside the top level of the
repository).| Modifier and Type | Class and Description |
|---|---|
static class |
MultipleJGitEnvironmentRepository.PatternMatchingJGitEnvironmentRepository
A
JGitEnvironmentProperties that matches patterns. |
JGitEnvironmentRepository.JGitFactorySearchPathLocator.LocationsMESSAGElogger| Constructor and Description |
|---|
MultipleJGitEnvironmentRepository(org.springframework.core.env.ConfigurableEnvironment environment,
MultipleJGitEnvironmentProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
Environment |
findOne(String application,
String profile,
String label,
boolean includeOrigin) |
SearchPathLocator.Locations |
getLocations(String application,
String profile,
String label) |
Map<String,MultipleJGitEnvironmentRepository.PatternMatchingJGitEnvironmentRepository> |
getRepos() |
void |
setOrder(int order) |
void |
setRepos(Map<String,MultipleJGitEnvironmentRepository.PatternMatchingJGitEnvironmentRepository> repos) |
fetch, getDefaultLabel, getGitFactory, getLastRefresh, getRefreshRate, getTimeout, getTransportConfigCallback, isCloneOnStart, isDeleteUntrackedBranches, isForcePull, isSkipSslValidation, isTryMasterBranch, onPullInvalidIndex, refresh, setCloneOnStart, setDefaultLabel, setDeleteUntrackedBranches, setForcePull, setGitCredentialsProviderFactory, setGitFactory, setLastRefresh, setRefreshRate, setSkipSslValidation, setTimeout, setTransportConfigCallback, setTryMasterBranch, shouldPull, warnfindOne, getOrdercreateBaseDir, getBasedir, getEnvironment, getPassphrase, getPassword, getSearchLocations, getSearchPaths, getUri, getUsername, getWorkingDirectory, isStrictHostKeyChecking, setBasedir, setEnvironment, setPassphrase, setPassword, setResourceLoader, setSearchPaths, setStrictHostKeyChecking, setUri, setUsernameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindOnepublic MultipleJGitEnvironmentRepository(org.springframework.core.env.ConfigurableEnvironment environment,
MultipleJGitEnvironmentProperties properties)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class JGitEnvironmentRepositoryExceptionpublic Map<String,MultipleJGitEnvironmentRepository.PatternMatchingJGitEnvironmentRepository> getRepos()
public void setRepos(Map<String,MultipleJGitEnvironmentRepository.PatternMatchingJGitEnvironmentRepository> repos)
public SearchPathLocator.Locations getLocations(String application, String profile, String label)
getLocations in interface SearchPathLocatorgetLocations in class JGitEnvironmentRepositorypublic Environment findOne(String application, String profile, String label, boolean includeOrigin)
findOne in interface EnvironmentRepositoryfindOne in class AbstractScmEnvironmentRepositorypublic void setOrder(int order)
setOrder in class AbstractScmEnvironmentRepositoryCopyright © 2021 Pivotal Software, Inc.. All rights reserved.