-
- All Implemented Interfaces:
public class MetaconfigSettings.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final MetaconfigLoggerDefaultLoggerprivate MetaconfigLoggerloggerprivate BooleancacheEnabledprivate BooleanretrieveValuesImmediatelypublic final static MetaconfigSettings.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final MetaconfigLoggergetDefaultLogger()final MetaconfigLoggergetLogger()A logger for metaconfig to use, if desired. final UnitsetLogger(MetaconfigLogger logger)A logger for metaconfig to use, if desired. final BooleangetCacheEnabled()A hook to disable caching. final UnitsetCacheEnabled(Boolean cacheEnabled)A hook to disable caching. final BooleangetRetrieveValuesImmediately()A hook to force retrieval of the config value immediately upon creation (rather than lazily on first access). final UnitsetRetrieveValuesImmediately(Boolean retrieveValuesImmediately)A hook to force retrieval of the config value immediately upon creation (rather than lazily on first access). -
-
Method Detail
-
getDefaultLogger
final MetaconfigLogger getDefaultLogger()
-
getLogger
final MetaconfigLogger getLogger()
A logger for metaconfig to use, if desired. Defaults to a no-op implementation
-
setLogger
final Unit setLogger(MetaconfigLogger logger)
A logger for metaconfig to use, if desired. Defaults to a no-op implementation
-
getCacheEnabled
final Boolean getCacheEnabled()
A hook to disable caching. This is only intended to be used for testing and is useful if a config property is defined as static (and therefore only loaded once). Disabling the cache will cause the property to re-look up the value each time.
-
setCacheEnabled
final Unit setCacheEnabled(Boolean cacheEnabled)
A hook to disable caching. This is only intended to be used for testing and is useful if a config property is defined as static (and therefore only loaded once). Disabling the cache will cause the property to re-look up the value each time.
-
getRetrieveValuesImmediately
final Boolean getRetrieveValuesImmediately()
A hook to force retrieval of the config value immediately upon creation (rather than lazily on first access). This is only intended to be used for testing and currently only works on ConfigSourceSuppliers.
-
setRetrieveValuesImmediately
final Unit setRetrieveValuesImmediately(Boolean retrieveValuesImmediately)
A hook to force retrieval of the config value immediately upon creation (rather than lazily on first access). This is only intended to be used for testing and currently only works on ConfigSourceSuppliers.
-
-
-
-