| Package | Description |
|---|---|
| org.ff4j |
Main classes to use and administrate Features and Properties.
|
| org.ff4j.audit.proxy |
Provides Proxies class for stores, they update audit on each operation.
|
| org.ff4j.cache |
Provides a cache proxy in ordre to limit overhead when reading Feature or Pro^perties in external storages.
|
| org.ff4j.conf |
Provides parsers to initialize the framework with xml definition files.
|
| org.ff4j.core |
Provides core classes and beans (as Feature, FeatureStore) to implement feature toggle.
|
| org.ff4j.store |
Provides default stores to persist features (InMemory and JDBC).
|
| Modifier and Type | Method and Description |
|---|---|
Feature |
FF4j.getFeature(String featureID)
The feature will be create automatically if the boolea, autocreate is enabled.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Feature> |
FF4j.getFeatures()
Read Features from store.
|
| Modifier and Type | Method and Description |
|---|---|
FF4j |
FF4j.createFeature(Feature fp)
Create new Feature.
|
boolean |
FF4j.isAllowed(Feature featureName)
Load SecurityProvider roles (e.g : SpringSecurity GrantedAuthorities)
|
| Modifier and Type | Method and Description |
|---|---|
FF4j |
FF4j.importFeatures(Collection<Feature> features)
Help to import features.
|
| Modifier and Type | Method and Description |
|---|---|
Feature |
FeatureStoreAuditProxy.read(String uid)
Create Feature is does not exist and enable it.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Feature> |
FeatureStoreAuditProxy.readAll()
Access to all features to get information.
|
Map<String,Feature> |
FeatureStoreAuditProxy.readGroup(String groupName)
Read all features within target group.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FeatureStoreAuditProxy.create(Feature fp)
Create flipPoint in storage (with roles).
|
void |
FeatureStoreAuditProxy.update(Feature fp)
Update FlipPoint within store.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FeatureStoreAuditProxy.importFeatures(Collection<Feature> features)
Import features.
|
| Modifier and Type | Method and Description |
|---|---|
Feature |
InMemoryCacheManager.getFeature(String featureId)
Return
Feature stored in cache. |
Feature |
FF4JCacheManager.getFeature(String featureId)
Return
Feature stored in cache. |
Feature |
FF4jCacheProxy.read(String featureUid)
Create Feature is does not exist and enable it.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,InMemoryCacheEntry<Feature>> |
InMemoryCacheManager.getFeaturesCache()
Getter accessor for attribute 'featuresCache'.
|
Map<String,Feature> |
FF4jCacheProxy.readAll()
Access to all features to get information.
|
Map<String,Feature> |
FF4jCacheProxy.readGroup(String groupName)
Read all features within target group.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FF4jCacheProxy.create(Feature fp)
Create flipPoint in storage (with roles).
|
void |
InMemoryCacheManager.putFeature(Feature feat)
Add feature to cache.
|
void |
FF4JCacheManager.putFeature(Feature feat)
Add feature to cache.
|
void |
InMemoryCacheManager.putFeature(Feature feat,
long timeToLive) |
void |
FF4jCacheProxy.update(Feature fp)
Update FlipPoint within store.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FF4jCacheProxy.importFeatures(Collection<Feature> features)
Import features.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Feature> |
XmlConfig.getFeatures()
Getter accessor for attribute 'features'.
|
Map<String,Feature> |
XmlParser.parseFeaturesTag(Element featuresTag)
Load map of
Feature from an inpustream (containing xml text). |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
XmlParser.exportAll(Map<String,Feature> mapOfFeatures,
Map<String,Property<?>> mapOfProperties)
Create XML output stream with both
Feature and PropertyString. |
InputStream |
XmlParser.exportFeatures(Map<String,Feature> mapOfFeatures)
Create XML output stream from a map of
Feature. |
void |
XmlConfig.setFeatures(Map<String,Feature> features)
Setter accessor for attribute 'features'.
|
| Modifier and Type | Method and Description |
|---|---|
static Feature |
Feature.fromJson(String jsonString) |
Feature |
FeatureStore.read(String featureUid)
Create Feature is does not exist and enable it.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Feature> |
FeatureStore.readAll()
Access to all features to get information.
|
Map<String,Feature> |
FeatureStore.readGroup(String groupName)
Read all features within target group.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FeatureStore.create(Feature fp)
Create flipPoint in storage (with roles).
|
void |
FeatureStore.update(Feature fp)
Update FlipPoint within store.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FeatureStore.importFeatures(Collection<Feature> features)
Import features.
|
| Constructor and Description |
|---|
Feature(Feature f)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Feature |
JdbcFeatureMapper.mapFeature(ResultSet rs)
Map feature result to bean.
|
Feature |
JdbcFeatureStore.read(String uid)
Create Feature is does not exist and enable it.
|
Feature |
InMemoryFeatureStore.read(String uid)
Create Feature is does not exist and enable it.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Feature> |
AbstractFeatureStore.importFeaturesFromXmlFile(String xmlConfFile)
Initialize store from XML Configuration File.
|
Map<String,Feature> |
JdbcFeatureStore.readAll()
Access to all features to get information.
|
Map<String,Feature> |
InMemoryFeatureStore.readAll()
Access to all features to get information.
|
Map<String,Feature> |
JdbcFeatureStore.readGroup(String groupName)
Read all features within target group.
|
Map<String,Feature> |
InMemoryFeatureStore.readGroup(String groupName)
Read all features within target group.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractFeatureStore.assertFeatureNotNull(Feature feature)
Validate feature uid.
|
void |
JdbcFeatureStore.create(Feature fp)
Create flipPoint in storage (with roles).
|
void |
InMemoryFeatureStore.create(Feature fp)
Create flipPoint in storage (with roles).
|
void |
JdbcFeatureStore.update(Feature fp)
Update FlipPoint within store.
|
void |
InMemoryFeatureStore.update(Feature fp)
Update FlipPoint within store.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractFeatureStore.importFeatures(Collection<Feature> features)
Import features from a set of feature.
|
| Constructor and Description |
|---|
InMemoryFeatureStore(Map<String,Feature> maps)
Constructor with full set of feature.
|
Copyright © 2013–2017 FF4J. All rights reserved.