Class VariableProviderMethodContribution

java.lang.Object
ch.tocco.nice2.scripting.impl.groovy.security.VariableProviderMethodContribution
All Implemented Interfaces:
AllowedMethodContribution

@Component public class VariableProviderMethodContribution extends Object implements AllowedMethodContribution
  • Constructor Details

    • VariableProviderMethodContribution

      public VariableProviderMethodContribution()
  • Method Details

    • setScriptVariableProviders

      @Autowired public void setScriptVariableProviders(List<ScriptVariableProvider> scriptVariableProviders)
    • acceptMethod

      public boolean acceptMethod(Class<?> type, String methodName)
      Specified by:
      acceptMethod in interface AllowedMethodContribution
      Parameters:
      type - the declaring class
      methodName - the name of the method
      Returns:
      whether this method call should be allowed in groovy scripts