
com.mageddo.featureswitch.repository.FeatureRepository Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of feature-switch Show documentation
Show all versions of feature-switch Show documentation
Simplify Consumer And Producer Configuration
The newest version!
package com.mageddo.featureswitch.repository;
import com.mageddo.featureswitch.Feature;
import com.mageddo.featureswitch.FeatureMetadata;
public interface FeatureRepository {
FeatureMetadata getMetadata(Feature feature, String user);
int updateMetadata(FeatureMetadata featureMetadata, String user);
default FeatureMetadata getMetadataOrDefault(Feature feature, String user, FeatureMetadata metadata){
final FeatureMetadata f = getMetadata(feature, user);
if(f != null){
return f;
}
return metadata;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy