Class MultipleJGitEnvironmentRepository.PatternMatchingJGitEnvironmentRepository
- java.lang.Object
-
- org.springframework.cloud.config.server.support.AbstractScmAccessor
-
- org.springframework.cloud.config.server.environment.AbstractScmEnvironmentRepository
-
- org.springframework.cloud.config.server.environment.JGitEnvironmentRepository
-
- org.springframework.cloud.config.server.environment.MultipleJGitEnvironmentRepository.PatternMatchingJGitEnvironmentRepository
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,EnvironmentRepository,SearchPathLocator,org.springframework.context.ResourceLoaderAware,org.springframework.core.Ordered
- Enclosing class:
- MultipleJGitEnvironmentRepository
public static class MultipleJGitEnvironmentRepository.PatternMatchingJGitEnvironmentRepository extends JGitEnvironmentRepository
AJGitEnvironmentPropertiesthat matches patterns.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.springframework.cloud.config.server.environment.JGitEnvironmentRepository
JGitEnvironmentRepository.JGitFactory
-
Nested classes/interfaces inherited from interface org.springframework.cloud.config.server.environment.SearchPathLocator
SearchPathLocator.Locations
-
-
Field Summary
-
Fields inherited from class org.springframework.cloud.config.server.environment.JGitEnvironmentRepository
MESSAGE
-
Fields inherited from class org.springframework.cloud.config.server.support.AbstractScmAccessor
logger
-
-
Constructor Summary
Constructors Constructor Description PatternMatchingJGitEnvironmentRepository()PatternMatchingJGitEnvironmentRepository(org.springframework.core.env.ConfigurableEnvironment environment, MultipleJGitEnvironmentProperties.PatternMatchingJGitEnvironmentProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnvironmentfindOne(String application, String profile, String label, boolean includeOrigin)StringgetName()String[]getPattern()booleanmatches(String application, String profile, String label)voidsetName(String name)voidsetPattern(String[] pattern)-
Methods inherited from class org.springframework.cloud.config.server.environment.JGitEnvironmentRepository
afterPropertiesSet, fetch, getDefaultLabel, getGitFactory, getLastRefresh, getLocations, getRefreshRate, getTimeout, getTransportConfigCallback, isCloneOnStart, isDeleteUntrackedBranches, isForcePull, isSkipSslValidation, isTryMasterBranch, onPullInvalidIndex, refresh, setCloneOnStart, setDefaultLabel, setDeleteUntrackedBranches, setForcePull, setGitCredentialsProviderFactory, setGitFactory, setLastRefresh, setRefreshRate, setSkipSslValidation, setTimeout, setTransportConfigCallback, setTryMasterBranch, shouldPull, warn
-
Methods inherited from class org.springframework.cloud.config.server.environment.AbstractScmEnvironmentRepository
findOne, getOrder, setOrder
-
Methods inherited from class org.springframework.cloud.config.server.support.AbstractScmAccessor
createBaseDir, getBasedir, getEnvironment, getPassphrase, getPassword, getSearchLocations, getSearchPaths, getUri, getUsername, getWorkingDirectory, isStrictHostKeyChecking, setBasedir, setEnvironment, setPassphrase, setPassword, setResourceLoader, setSearchPaths, setStrictHostKeyChecking, setUri, setUsername
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.cloud.config.server.environment.EnvironmentRepository
findOne
-
-
-
-
Constructor Detail
-
PatternMatchingJGitEnvironmentRepository
public PatternMatchingJGitEnvironmentRepository()
-
PatternMatchingJGitEnvironmentRepository
public PatternMatchingJGitEnvironmentRepository(org.springframework.core.env.ConfigurableEnvironment environment, MultipleJGitEnvironmentProperties.PatternMatchingJGitEnvironmentProperties properties)
-
-
Method Detail
-
findOne
public Environment findOne(String application, String profile, String label, boolean includeOrigin)
- Specified by:
findOnein interfaceEnvironmentRepository- Overrides:
findOnein classAbstractScmEnvironmentRepository
-
getName
public String getName()
-
setName
public void setName(String name)
-
getPattern
public String[] getPattern()
-
setPattern
public void setPattern(String[] pattern)
-
-