- 授权协议: Apache
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: http://www.togglz.org/
- 软件文档: http://www.togglz.org/quickstart.html
软件介绍
Togglz 是 Java 的 Feature Toggles 模式实现.
Feature Toggles 是持续部署和交互中非常普遍的敏捷开发实践。Togglz 可以切换用户正在执行的各种新特性,在应用运行时允许启用或者禁用某些特性,即使对于个人用户也是支持的。
用例:
public enum MyFeatures implements Feature {
@Label("First Feature")
FEATURE_ONE,
@Label("Second Feature")
FEATURE_TWO;
public boolean isActive() {
return FeatureContext.getFeatureManager().isActive(this);
}
}启用某个特性给当前用户:
public void someBusinessMethod() {
if( MyFeatures.FEATURE_ONE.isActive() ) {
// do new exciting stuff here
}
[...]
}
Effective JavaScript
David Herman / Addison-Wesley Professional / 2012-12-6 / USD 39.99
"It's uncommon to have a programming language wonk who can speak in such comfortable and friendly language as David does. His walk through the syntax and semantics of JavaScript is both charming and h......一起来看看 《Effective JavaScript》 这本书的介绍吧!
