com.atlassian.confluence.plugins.soy
Class DarkFeatureFunction

java.lang.Object
  extended by com.atlassian.confluence.plugins.soy.DarkFeatureFunction
All Implemented Interfaces:
com.atlassian.soy.renderer.SoyClientFunction, com.atlassian.soy.renderer.SoyFunction, com.atlassian.soy.renderer.SoyServerFunction<java.lang.Boolean>

public class DarkFeatureFunction
extends java.lang.Object
implements com.atlassian.soy.renderer.SoyServerFunction<java.lang.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
DarkFeatureFunction()
           
 
Method Summary
 java.lang.Boolean apply(java.lang.Object... args)
           
 com.atlassian.soy.renderer.JsExpression generate(com.atlassian.soy.renderer.JsExpression... args)
           
 java.lang.String getName()
           
 java.util.Set<java.lang.Integer> validArgSizes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DarkFeatureFunction

public DarkFeatureFunction()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface com.atlassian.soy.renderer.SoyFunction

apply

public java.lang.Boolean apply(java.lang.Object... args)
Specified by:
apply in interface com.atlassian.soy.renderer.SoyServerFunction<java.lang.Boolean>

validArgSizes

public java.util.Set<java.lang.Integer> validArgSizes()
Specified by:
validArgSizes in interface com.atlassian.soy.renderer.SoyFunction

generate

public com.atlassian.soy.renderer.JsExpression generate(com.atlassian.soy.renderer.JsExpression... args)
Specified by:
generate in interface com.atlassian.soy.renderer.SoyClientFunction


Copyright © 2003-2014 Atlassian. All Rights Reserved.