Questions tagged [togglz]

Togglz is an implementation of the Feature Toggles pattern for Java.

Togglz is an implementation of the Feature Toggles pattern for Java.

Feature Toggles are a very common agile development practices in the context of continuous deployment and delivery.

The basic idea is to associate a toggle with each new feature you are working on. This allows you to enable or disable these features at application runtime, even for individual users.

68 questions
2
votes
1 answer

Provider org.togglz.slf4j.Slf4jLogProvider not a subtype

I have a library, built with Maven, that uses Spring 4.0.3.RELEASE and Togglz 2.2.0.Final. I'm trying to write a JUnit 4.11 test of my Spring class and running into the following error on the first test that gets…
B. Mericle
  • 23
  • 4
2
votes
1 answer

Why must a TogglzRule be declared public?

If i declare a TogglzRule in an Unit-Test it must be public, otherwise there will be thrown an exception: java.lang.Exception: The @Rule 'togglzRule' must be public. I used to declare members private, why is this not possible?
Cengiz
  • 5,375
  • 6
  • 52
  • 77
1
vote
0 answers

Using a constraint with a parmeterized constructor in Spring Boot application

I have a Spring Boot application where an interface has a constraint: @Constraint( validatedBy = { MyValidator.class }) public @interface MyInterface { ... } I'm using Togglz to enable/disable some features and one class where I…
runnerpaul
  • 5,942
  • 8
  • 49
  • 118
1
vote
0 answers

No logout button on togglz console

The togglz console has no logout button. Is it possible to add one? context: I have an api secured with keycloak, i've added togglz console, which means i had to create a separate securityconfig with an order prior to keycloak's…
Remis07
  • 367
  • 2
  • 5
  • 14
1
vote
1 answer

Togglz with Kotlin: Problem to inject some dependency in my custom ActivationStrategy

I have defined the file that references my custom ActivationStrategy in META-INF/Services/ as explained by the Togglz library for custom strategy (https://www.togglz.org/documentation/activation-strategies.html), since I need to resolve whether or…
Nico
  • 11
  • 3
1
vote
1 answer

Sample Togglz implemetation with spring boot kotlin

Can anyone help me with sample example for spring-boot-kotlion with togglz feature.
1
vote
1 answer

Spring Cloud config with togglz

I've configured an application with togglz, with the application.properties externalized in a Spring Boot Config server. When I update a feature status on application.properties in the server and make a call to /actuator/refresh they return the…
1
vote
1 answer

Using togglz to implement feature flags based on environment (dev, qa, prod)

I am implementing feature flags in my spring application and I would like to use togglz. I would like the features to be based on the environment. For example a feature is being worked or tested so I could have it on in DEV and QA, but it's not…
Phil Lachmann
  • 211
  • 4
  • 14
1
vote
0 answers

Enum bases feature toggles are over written by DB?

I have a set of feature toggles configured in an ENUM. If I insert a value into the TOGGLZ table, i can override this flag. How can I block this? Is my config wrong? getFlag(my_fag) == false; insert into TOGGLZ values…
ApexOne
  • 97
  • 9
1
vote
4 answers

Togglz returns a 403 on feature toggle

I have implemented togglz into my spring boot application. I can even access the Togglz console, and I have tested the restrictions with the FeatureManager. However, if I go to the togglz console and try to change the activation strategy or…
eancu
  • 53
  • 9
1
vote
0 answers

Togglz application context listener warning

I've implemented a basic togglz setup using Spring Boot starter. I'm getting the following at startup: WARN o.t.s.l.TogglzApplicationContextBinderApplicationListener - ApplicationContext already bound to current context class loader, releasing it…
orbfish
  • 7,381
  • 14
  • 58
  • 75
1
vote
0 answers

Togglz changes FEATURE_ENABLED column in database

I am using JDBCStateRepository with oracle database. During application startup, togglz disables all features (changes all FEATURE_ENABLED to 0 in database) for all features that don't have @EnabledByDefault. How can I disable this behavior? Thanks
1
vote
1 answer

How would one use a feature toggle within the app config bean creation using Togglz Spring Autoconfiguration?

Example of using the feature toggle to create a bean within the app configuration: @RefreshScope @Configuration @Order(1) class AppConfig { @Bean @Autowired public FeatureProvider featureProvider() { return new…
RCR
  • 11
  • 2
1
vote
1 answer

Togglz Spring Boot - No Feature Manager provided

I have tried to integrate togglz into my Spring Boot app, however it looks as though Auto Configuration has difficulty providing a FeatureManager. The following is my stack trace: 2017-02-23 16:04:30.033 DEBUG [myService,,,] 23359 --- [ …
deanmau5
  • 861
  • 7
  • 17
  • 27
1
vote
1 answer

Control Togglz from a single place

We are currently attempting to implement the Togglz library in Spring-MVC. We currently manage the toggles in our code from our MyFeatures.java file in the following way: import org.togglz.core.Feature; import…
Joe
  • 678
  • 9
  • 24