| 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.property |
Provides beans to work with ff4j types Property
|
| org.ff4j.property.multi |
Provides beans to work with ff4j multivalued types :Property
|
| org.ff4j.property.store |
Provides default stores to persist Properties (InMemory and JDBC).
|
| org.ff4j.property.util |
Provides utilities classes for Properties (Factory, Json).
|
| org.ff4j.store |
Provides default stores to persist features (InMemory and JDBC).
|
| org.ff4j.utils |
Provides utilities static classes (File, IO, Time...)
|
| Modifier and Type | Method and Description |
|---|---|
Property<?> |
FF4j.getProperty(String propertyName)
Read property in Store
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Property<?>> |
FF4j.getProperties()
Return all properties from store.
|
| Modifier and Type | Method and Description |
|---|---|
FF4j |
FF4j.createProperty(Property<?> prop)
Create new Property.
|
| Modifier and Type | Method and Description |
|---|---|
FF4j |
FF4j.importProperties(Collection<Property<?>> properties)
Help to import propertiess.
|
| Modifier and Type | Method and Description |
|---|---|
Property<?> |
PropertyStoreAuditProxy.readProperty(String name)
Read property value.
|
Property<?> |
PropertyStoreAuditProxy.readProperty(String name,
Property<?> defaultValue)
Read property value and if not found return the default value
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Property<?>> |
PropertyStoreAuditProxy.readAllProperties()
Retrieve all properties from store.
|
| Modifier and Type | Method and Description |
|---|---|
<T> void |
PropertyStoreAuditProxy.createProperty(Property<T> prop)
Create new property within store.
|
Property<?> |
PropertyStoreAuditProxy.readProperty(String name,
Property<?> defaultValue)
Read property value and if not found return the default value
|
<T> void |
PropertyStoreAuditProxy.updateProperty(Property<T> prop)
Update existing property.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PropertyStoreAuditProxy.importProperties(Collection<Property<?>> properties)
Import a set of properties.
|
| Modifier and Type | Method and Description |
|---|---|
Property<?> |
InMemoryCacheManager.getProperty(String pName)
Return
PropertyString stored in cache. |
Property<?> |
FF4JCacheManager.getProperty(String featureId)
Return
PropertyString stored in cache. |
Property<?> |
FF4jCacheProxy.readProperty(String name)
Read property value.
|
Property<?> |
FF4jCacheProxy.readProperty(String name,
Property<?> defaultValue)
Read property value and if not found return the default value
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,InMemoryCacheEntry<Property<?>>> |
InMemoryCacheManager.getPropertyCache()
Getter accessor for attribute 'propertyCache'.
|
Map<String,Property<?>> |
FF4jCacheProxy.readAllProperties()
Retrieve all properties from store.
|
| Modifier and Type | Method and Description |
|---|---|
<T> void |
FF4jCacheProxy.createProperty(Property<T> property)
Create new property within store.
|
void |
InMemoryCacheManager.putProperty(Property<?> prop)
Add property to cache.
|
void |
FF4JCacheManager.putProperty(Property<?> feat)
Add property to cache.
|
void |
InMemoryCacheManager.putProperty(Property<?> prop,
long timeToLive) |
Property<?> |
FF4jCacheProxy.readProperty(String name,
Property<?> defaultValue)
Read property value and if not found return the default value
|
<T> void |
FF4jCacheProxy.updateProperty(Property<T> propertyValue)
Update existing property.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FF4jCacheProxy.importProperties(Collection<Property<?>> properties)
Import a set of properties.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Property<?>> |
XmlConfig.getProperties()
Getter accessor for attribute 'properties'.
|
| 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.exportProperties(Map<String,Property<?>> mapOfProperties)
Create XML output stream from a map of
PropertyString. |
void |
XmlConfig.setProperties(Map<String,Property<?>> properties)
Setter accessor for attribute 'properties'.
|
| Modifier and Type | Method and Description |
|---|---|
<T> Property<T> |
Feature.getProperty(String propId)
Accessor to read a custom property from Feature.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Property<?>> |
Feature.getCustomProperties()
Getter accessor for attribute 'customProperties'.
|
| Modifier and Type | Method and Description |
|---|---|
<T> void |
Feature.addProperty(Property<T> props)
Utility to add a property.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Feature.setCustomProperties(Map<String,Property<?>> customProperties)
Setter accessor for attribute 'customProperties'.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PropertyBigDecimal
Implementation of a property of type INT.
|
class |
PropertyBigInteger
Implementation of a property of type INT.
|
class |
PropertyBoolean
Boolean Property.
|
class |
PropertyByte
Boolean Property.
|
class |
PropertyCalendar |
class |
PropertyClass
Implementation of Property for java
Class. |
class |
PropertyDate |
class |
PropertyDouble
Représentation of a property double
|
class |
PropertyFloat
Représentation of a property double
|
class |
PropertyInstant
Creatoin of property.
|
class |
PropertyInt
Implementation of a property of type INT.
|
class |
PropertyLocalDateTime
Creatoin of property.
|
class |
PropertyLogLevel
Custom property to code a logLevel.
|
class |
PropertyLong
Implementation of a property of type INT.
|
class |
PropertyShort
Implementation of a property of type INT.
|
class |
PropertyString
Default implementation of
Property as Simple string property. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractPropertyList<T>
SuperClass for property as lists.
|
class |
AbstractPropertyMap<T,M extends Map<String,? extends T>> |
class |
AbstractPropertyMultiValued<T,C extends Collection<T>>
Super class to work with multivalued properties.
|
class |
AbstractPropertySet<T>
SuperClass for property as lists.
|
| Modifier and Type | Method and Description |
|---|---|
Property<?> |
JdbcPropertyMapper.map(ResultSet rs)
Expect to convert a JDBC Result to Property.
|
Property<?> |
PropertyStore.readProperty(String name)
Read property value.
|
Property<?> |
JdbcPropertyStore.readProperty(String name)
Read property value.
|
Property<?> |
InMemoryPropertyStore.readProperty(String name)
Read property value.
|
Property<?> |
PropertyStore.readProperty(String name,
Property<?> defaultValue)
Read property value and if not found return the default value
|
Property<?> |
AbstractPropertyStore.readProperty(String name,
Property<?> defaultValue)
Read property value and if not found return the default value
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Property<?>> |
AbstractPropertyStore.importPropertiesFromXmlFile(String xmlConfFile)
Initialize store from XML Configuration File.
|
Map<String,Property<?>> |
PropertyStore.readAllProperties()
Retrieve all properties from store.
|
Map<String,Property<?>> |
JdbcPropertyStore.readAllProperties()
Retrieve all properties from store.
|
Map<String,Property<?>> |
InMemoryPropertyStore.readAllProperties()
Retrieve all properties from store.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractPropertyStore.assertPropertyNotNull(Property<?> property)
Validate feature uid.
|
<T> void |
PropertyStore.createProperty(Property<T> value)
Create new property within store.
|
<T> void |
JdbcPropertyStore.createProperty(Property<T> ap)
Create new property within store.
|
<T> void |
InMemoryPropertyStore.createProperty(Property<T> value)
Create new property within store.
|
Property<?> |
PropertyStore.readProperty(String name,
Property<?> defaultValue)
Read property value and if not found return the default value
|
Property<?> |
AbstractPropertyStore.readProperty(String name,
Property<?> defaultValue)
Read property value and if not found return the default value
|
<T> void |
PropertyStore.updateProperty(Property<T> fixedValue)
Update existing property.
|
<T> void |
JdbcPropertyStore.updateProperty(Property<T> prop)
Update existing property.
|
<T> void |
AbstractPropertyStore.updateProperty(Property<T> prop)
Update existing property.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PropertyStore.importProperties(Collection<Property<?>> properties)
Import a set of properties.
|
void |
AbstractPropertyStore.importProperties(Collection<Property<?>> properties)
Import a set of properties.
|
void |
InMemoryPropertyStore.setProperties(Map<String,Property<?>> properties)
Setter accessor for attribute 'properties'.
|
| Constructor and Description |
|---|
InMemoryPropertyStore(Map<String,Property<?>> maps)
Constructor with full set of feature.
|
| Modifier and Type | Method and Description |
|---|---|
Property<?> |
PropertyJsonBean.asProperty() |
static Property<?> |
PropertyFactory.createProperty(PropertyJsonBean pgb)
Create Property from generic bean.
|
static Property<?> |
PropertyFactory.createProperty(String pName,
Object value)
Factory method to create property.
|
static Property<?> |
PropertyFactory.createProperty(String pName,
String pType,
String pValue)
Factory method to create property.
|
static Property<?> |
PropertyFactory.createProperty(String pName,
String pType,
String pValue,
String desc,
Set<String> fixedValues)
Factory method to create property.
|
| Constructor and Description |
|---|
PropertyJsonBean(Property<?> property)
Initialization from Property.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JdbcFeatureStore.createCustomProperties(String uid,
Collection<Property<?>> props)
Ease creation of properties in Database.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
JsonUtils.customPropertiesAsJson(Map<String,? extends Property<?>> customProperties)
Serialized custom properties.
|
Copyright © 2013–2017 FF4J. All rights reserved.