com.vaadin.experimental.
Class FeatureFlags
All Implemented Interfaces:
Tracks available feature flags and their status.
Enabled feature flags are stored in
vaadin-featureflags.properties
inside the resources folder
(src/main/resources
).
See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
FeatureFlags wrapper class for storing the FeatureFlags object.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Feature
static final Feature
static final Feature
static final Feature
static final Feature
static final Feature
static final Feature
static final Feature
static final Feature
static final String
static final Feature
static final String
Deprecated.
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FeatureFlags
get
(VaadinContext context) Gets the FeatureFlags for the given Vaadin context.
getEnableHelperMessage
(Feature feature) Get a list of all available features and their status.
boolean
Checks if the given feature is enabled.
boolean
Checks if the given feature is enabled.
void
Read the feature flag properties files and updates the enable property of each feature object.
void
setEnabled
(String featureId, boolean enabled) Enables or disables the given feature.
void
setPropertiesLocation
(File propertiesFolder) Set by the Maven / Gradle plugin when running through that so the feature flags will be correctly detected.
-
Field Details
-
PROPERTIES_FILENAME
See Also:
-
SYSTEM_PROPERTY_PREFIX
Deprecated.UseSYSTEM_PROPERTY_PREFIX_EXPERIMENTAL
instead.See Also:
-
SYSTEM_PROPERTY_PREFIX_EXPERIMENTAL
See Also:
-
EXAMPLE
-
COLLABORATION_ENGINE_BACKEND
-
FORM_FILLER_ADDON
-
HILLA_I18N
-
COPILOT_EXPERIMENTAL
-
HILLA_FULLSTACK_SIGNALS
-
DASHBOARD_COMPONENT
-
CARD_COMPONENT
-
REACT19
-
ACCESSIBLE_DISABLED_BUTTONS
-
-
Constructor Details
-
FeatureFlags
Generate FeatureFlags with given lookup data.
Parameters:
lookup
- lookup to use
-
-
Method Details
-
get
Gets the FeatureFlags for the given Vaadin context. If the Vaadin context has no FeatureFlags, a new instance is created and assigned to the context.
Parameters:
context
- the vaadin context for which to get FeatureFlags from, notnull
Returns:
a feature flags instance for the given context, not
null
-
setPropertiesLocation
Set by the Maven / Gradle plugin when running through that so the feature flags will be correctly detected.
-
loadProperties
public void loadProperties()Read the feature flag properties files and updates the enable property of each feature object.
-
getFeatures
Get a list of all available features and their status.
Returns:
a list of all features
-
isEnabled
Checks if the given feature is enabled.
Parameters:
feature
- the feature to checkReturns:
true
if enabled,false
otherwise -
isEnabled
Checks if the given feature is enabled.
Parameters:
featureId
- the feature to checkReturns:
true
if enabled,false
otherwise -
setEnabled
Enables or disables the given feature.
Parameters:
featureId
- the feature idenabled
-true
to enable,false
to disable -
getEnableHelperMessage
-
SYSTEM_PROPERTY_PREFIX_EXPERIMENTAL
instead.