Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- boolean useCompilationCache = policies == null ||
- !Arrays.asList(policies).contains(ScriptExecutionPolicy.DO_NOT_USE_COMPILE_CACHE);
- Script script = null;
- Object result;
- try {
- script = useCompilationCache ? getPool().borrowObject(text) : createScript(text);
- script.setBinding(binding);
- result = script.run();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement