Package growthbook.sdk.java.repository
Class LocalGbFeatureRepository
java.lang.Object
growthbook.sdk.java.repository.LocalGbFeatureRepository
- All Implemented Interfaces:
IGBFeaturesRepository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCan be ignored for this implementationMethod for getting the featuresJson in format of String from user json filevoidMethod for initializingLocalGbFeatureRepositoryby fetching features from user's json filevoidinitialize(Boolean retryOnFailure) Can be ignored for this implementationvoidonFeaturesRefresh(FeatureRefreshCallback callback) Can be ignored for this implementation
-
Constructor Details
-
LocalGbFeatureRepository
-
-
Method Details
-
initialize
Method for initializingLocalGbFeatureRepositoryby fetching features from user's json file- Specified by:
initializein interfaceIGBFeaturesRepository- Throws:
FeatureFetchException- exception when FileNotFoundException occur
-
initialize
Can be ignored for this implementation- Specified by:
initializein interfaceIGBFeaturesRepository
-
getFeaturesJson
Method for getting the featuresJson in format of String from user json file- Specified by:
getFeaturesJsonin interfaceIGBFeaturesRepository- Returns:
- featuresJson
-
getParsedFeatures
-
onFeaturesRefresh
Can be ignored for this implementation- Specified by:
onFeaturesRefreshin interfaceIGBFeaturesRepository
-
clearCallbacks
public void clearCallbacks()Can be ignored for this implementation- Specified by:
clearCallbacksin interfaceIGBFeaturesRepository
-