public class JSONExecutor
extends java.lang.Object
| Constructor and Description |
|---|
JSONExecutor(ModuleRegistry moduleRegistry,
ParametersTransformer parametersTransformer,
ReturnValuesTransformer returnValuesTransformer)
Create a new JSONExecutor.
|
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
execute(org.json.JSONObject arguments)
Execute a command given as a JSONObject.
|
protected boolean |
isModuleAllowed(Module module)
Check if the given module is allowed to be used.
|
public JSONExecutor(ModuleRegistry moduleRegistry, ParametersTransformer parametersTransformer, ReturnValuesTransformer returnValuesTransformer)
moduleRegistry - The module registry describing which modules to use.parametersTransformer - The transformer to parse parameters.returnValuesTransformer - The transformer to render return values.public org.json.JSONObject execute(org.json.JSONObject arguments)
arguments - The JSONObject describing what should be done.protected boolean isModuleAllowed(Module module)
module - The module that is checked.