Hey
Andreas,
sorry for the delay. But I've finally some good news for you. I released Togglz 2.0.0.Alpha1 this weekend. I decided to call the next version 2.0.0 instead of 1.2.0 because of the API changes with this release.
There haven't been an official announcement yet, but you can download the new version from the Togglz homepage [1], get the artifacts from Maven Central [2] and have a look at the javadocs [3].
To activate features based on user roles, you have to implement a custom ActivationStrategy [4]. This should be straight forward. Just have a look at the existing implementations to get a general idea on how this works.
One small warning. Due to the major changes to the API, Togglz will migrate the format of the persisted feature state (in the properties file or in the database table) to a new format. This will be done automatically for you. However this has one drawback. You cannot go back to Togglz 1.1.x after this migration anymore. So if you want to give 2.0.0.Alpha1 a try, you should backup the properties file and/or database table.
One more thing. I know that "Alpha1" sounds like this version of Togglz isn't stable yet. But actually I think this version is very stable. I just named it Alpha1 because I want to get some community feedback regarding the APIs. So APIs _may_ change in the final version. But I think if there are changes, they won't be very big. I'm pretty happy with the API right now. The overall stability of 2.0.0.Alpha1 is great. We've even more integration tests compared to 1.1.0.Final. I for myself will start to update some of our production applications to 2.0.0.Alpha1 today. :)
I'm looking forward to your feedback. :)
Best regards
Christian
[1]
http://www.togglz.org/download.html
[2]
http://search.maven.org/#search%7Cga%7C1%7Ctogglz[3]
http://www.togglz.org/apidocs/2.0.0.Alpha1