All the ActivationStrategy
of togglez uses input from HttpRequest or from other context.
However, If I am using togglez for stand alone java application is there any way to pass parameters into isActive
method.
Features.DOWNLOAD_ACCESS.isActive(availableBalance);
instead of
Features.DOWNLOAD_ACCESS.isActive();
Below is ReleaseDateActivationStrategy
uses current date. But if some one change system date than it will fail.
https://github.com/togglz/togglz/blob/master/core/src/main/java/org/togglz/core/activation/ReleaseDateActivationStrategy.java