Package com.bytedesk.core.feature
Class FeatureService
java.lang.Object
com.bytedesk.core.feature.FeatureService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FeatureRepositoryprivate com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFeatureConfig(String code) getFeaturesByModule(String moduleName) isFeatureEnabled(String code) registerFeature(String code, String name, String moduleName) voidupdateFeatureConfig(String code, Map<String, Object> config) voidupdateFeatureStatus(String code, boolean enabled)
-
Field Details
-
featureRepository
-
objectMapper
@Autowired private com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
FeatureService
public FeatureService()
-
-
Method Details
-
registerFeature
-
updateFeatureStatus
-
getEnabledFeatures
-
getFeaturesByModule
-
isFeatureEnabled
-
getFeatureConfig
-
updateFeatureConfig
-
getModuleFeatureStats
-