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 Details

    • DarkFeatureFunction

      public DarkFeatureFunction()
  • Method Details

    • getName

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

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

      public Set<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