Package cz.o2.proxima.core.repository
Class ConfigRepository.Builder
- java.lang.Object
-
- cz.o2.proxima.core.repository.ConfigRepository.Builder
-
- Enclosing class:
- ConfigRepository
public static class ConfigRepository.Builder extends java.lang.Object
Builder for the repository.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigRepository
build()
static ConfigRepository.Builder
of(cz.o2.proxima.typesafe.config.Config config)
Create newRepository
fromConfig
.static ConfigRepository.Builder
ofTest(cz.o2.proxima.typesafe.config.Config config)
Create a test version of repository.ConfigRepository.Builder
withCachingEnabled(boolean flag)
ConfigRepository.Builder
withLoadClasses(boolean flag)
ConfigRepository.Builder
withLoadFamilies(boolean flag)
ConfigRepository.Builder
withReadOnly(boolean flag)
ConfigRepository.Builder
withValidate(Repository.Validate... values)
ConfigRepository.Builder
withValidateFlag(int flag)
-
-
-
Method Detail
-
of
public static ConfigRepository.Builder of(cz.o2.proxima.typesafe.config.Config config)
Create newRepository
fromConfig
.- Parameters:
config
- config to createfrom
- Returns:
- new builder of Repository
-
ofTest
public static ConfigRepository.Builder ofTest(cz.o2.proxima.typesafe.config.Config config)
Create a test version of repository.- Parameters:
config
- config to use- Returns:
- new Builder of test Repository
-
withCachingEnabled
public ConfigRepository.Builder withCachingEnabled(boolean flag)
-
withReadOnly
public ConfigRepository.Builder withReadOnly(boolean flag)
-
withValidate
public ConfigRepository.Builder withValidate(Repository.Validate... values)
-
withValidateFlag
public ConfigRepository.Builder withValidateFlag(int flag)
-
withLoadFamilies
public ConfigRepository.Builder withLoadFamilies(boolean flag)
-
withLoadClasses
public ConfigRepository.Builder withLoadClasses(boolean flag)
-
build
public ConfigRepository build()
-
-