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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
acceptMethod
(Class<?> type, String methodName) void
setScriptVariableProviders
(List<ScriptVariableProvider> scriptVariableProviders)
-
Constructor Details
-
VariableProviderMethodContribution
public VariableProviderMethodContribution()
-
-
Method Details
-
setScriptVariableProviders
@Autowired public void setScriptVariableProviders(List<ScriptVariableProvider> scriptVariableProviders) -
acceptMethod
- Specified by:
acceptMethod
in interfaceAllowedMethodContribution
- Parameters:
type
- the declaring classmethodName
- the name of the method- Returns:
- whether this method call should be allowed in groovy scripts
-