Class DarkFeatureFunction
java.lang.Object
com.atlassian.confluence.plugins.soy.DarkFeatureFunction
- All Implemented Interfaces:
com.atlassian.soy.renderer.SoyClientFunction
,com.atlassian.soy.renderer.SoyFunction
,com.atlassian.soy.renderer.SoyServerFunction<Boolean>
public class DarkFeatureFunction
extends Object
implements com.atlassian.soy.renderer.SoyServerFunction<Boolean>, com.atlassian.soy.renderer.SoyClientFunction
Soy function to check whether a specific dark feature is enabled.
NOTE: To be used carefully - it's usually best to isolate a dark feature in a plugin, and only deliver web resources based on the dark feature condition.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DarkFeatureFunction
public DarkFeatureFunction()
-
-
Method Details
-
getName
- Specified by:
getName
in interfacecom.atlassian.soy.renderer.SoyFunction
-
apply
- Specified by:
apply
in interfacecom.atlassian.soy.renderer.SoyServerFunction<Boolean>
-
validArgSizes
- Specified by:
validArgSizes
in interfacecom.atlassian.soy.renderer.SoyFunction
-
generate
public com.atlassian.soy.renderer.JsExpression generate(com.atlassian.soy.renderer.JsExpression... args) - Specified by:
generate
in interfacecom.atlassian.soy.renderer.SoyClientFunction
-