Class TogglzProperties
java.lang.Object
org.togglz.spring.boot.actuate.autoconfigure.TogglzProperties
@ConfigurationProperties(prefix="togglz",
ignoreUnknownFields=true)
@Validated
public class TogglzProperties
extends Object
Configuration properties for Togglz.
- Author:
- Marcel Overdijk
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCache()Class<? extends org.togglz.core.Feature>[]The configured features in a format that can be consumed by a PropertyFeatureProvider.booleanbooleanvoidsetCache(TogglzProperties.Cache cache) voidsetConsole(TogglzProperties.Console console) voidsetCreateFeaturesFileIfAbsent(boolean createFeaturesFileIfAbsent) voidsetEnabled(boolean enabled) voidsetEndpoint(TogglzProperties.Endpoint endpoint) voidsetFeatureEnums(Class<? extends org.togglz.core.Feature>[] featureEnums) voidsetFeatureManagerName(String featureManagerName) voidsetFeatures(Map<String, TogglzProperties.FeatureSpec> features) voidsetFeaturesFile(String featuresFile) voidsetFeaturesFileMinCheckInterval(Integer featuresFileMinCheckInterval)
-
Constructor Details
-
TogglzProperties
public TogglzProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
getFeatureEnums
-
setFeatureEnums
-
setEnabled
public void setEnabled(boolean enabled) -
getFeatureManagerName
-
setFeatureManagerName
-
getFeatures
-
setFeatures
-
getFeaturesFile
-
setFeaturesFile
-
isCreateFeaturesFileIfAbsent
public boolean isCreateFeaturesFileIfAbsent() -
setCreateFeaturesFileIfAbsent
public void setCreateFeaturesFileIfAbsent(boolean createFeaturesFileIfAbsent) -
getFeaturesFileMinCheckInterval
-
setFeaturesFileMinCheckInterval
-
getCache
-
setCache
-
getConsole
-
setConsole
-
getEndpoint
-
setEndpoint
-
getFeatureProperties
The configured features in a format that can be consumed by a PropertyFeatureProvider.- Returns:
- features in the right format.
-