![]() ![]() ![]() In our example, let's use the SystemPropertyActivationStrategy for our EMPLOYEE_MANAGEMENT_FEATURE which evaluates the feature's state based on the value of a System property. Togglz library also provides a variety of activation strategies that can be used to determine whether a feature is enabled based on a certain condition. ![]() If the feature is active, the aspect will continue the execution of the method if not, it will log a message without running the method code. Next, we will create an aspect that intercepts a custom AssociatedFeature annotation and checks the feature provided in the annotation parameter to determine whether it is active or not: class FeaturesAspect ) The latest versions of togglz-spring-boot-starter, togglz-spring-security, spring-boot-starter-web, spring-boot-starter-data-jpa, spring-boot-starter-test, h2 can be downloaded from Maven Central. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |