protected List < ExecutableScript > initEnvForLanguage ( String language ) { List < ExecutableScript > scripts = new ArrayList < ExecutableScript > ( ) ; for ( ScriptEnvResolver resolver : envResolvers ) { String [ ] resolvedScripts = resolver . resolve ( language ) ; if ( resolvedScripts != null ) { for ( String resolvedScript : resolvedScripts ) { scripts . add ( scriptFactory . createScriptFromSource ( language , resolvedScript ) ) ; } } } return scripts ; }
Initializes the env scripts for a given language .