Feature flags can be managed in different ways: by using Vaadin Copilot; by editing the feature flags properties file; or by setting Java system properties. Each of these methods is described in the sub-sections that follow. As you read, keep in mind that system properties always have the highest priority. Since they’re not written into the feature flags properties file, they’re valid only for a single execution.
Vaadin CopilotIt’s easy to manage feature flags using Vaadin Copilot. When running your browser in development mode, click the Vaadin Copilot activation button in your application. It’s located at bottom right corner.
Next, open the Feature Flags panel in right drawer, and then click the toggle buttons to enable or disable features.
When finished, restart the application for your changes to take effect.
Editing the Properties FileAs mentioned, you can also manage feature flags by editing the properties file. To do so by this method, edit the src/main/resources/vaadin-featureflags.properties
file in your application folder — or create the file if it doesn’t already exist.
When you have that file open, add a line for each feature in the format of com.vaadin.experimental.<FEATURE_NAME>=true
. Here’s an example of how this might look:
vaadin-featureflags.properties
com.vaadin.experimental.masterDetailLayoutComponent=true
To disable a feature, remove the corresponding line or set its value to false
.
When you’re finished enabling or disabling feature flags, save the properties file and restart the application.
Setting Java System PropertiesThe last method for managing feature flags is to set the Java system properties. From the command-line, use the IDE launch configuration or a tool configuration — such as, Spring Boot Maven plugin — to set a system property for each feature flag to be enabled or disabled.
The property name should be in the format, vaadin.<FEATURE_NAME>
, like so:
-Dvaadin.masterDetailLayoutComponent=true
To temporarily disable a feature, set its property value to false
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4