Package org.apache.myfaces.extensions.cdi.scripting.api

Examples of org.apache.myfaces.extensions.cdi.scripting.api.LanguageManager


     * @param language current language
     * @return script-engine for the given language
     */
    public static ScriptEngine createScriptEngine(Class<? extends Language> language)
    {
        LanguageManager languageManager = CodiUtils.getContextualReferenceByClass(LanguageManager.class);

        String languageName = languageManager.getLanguageName(language);
        return getCurrentScriptEngineManager().getEngineByName(languageName);
    }
View Full Code Here


     * @param language current language
     * @return script-engine for the given language
     */
    public static ScriptEngine createScriptEngine(Class<? extends Language> language)
    {
        LanguageManager languageManager = CodiUtils.getContextualReferenceByClass(LanguageManager.class);

        String languageName = languageManager.getLanguageName(language);
        return getCurrentScriptEngineManager().getEngineByName(languageName);
    }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.extensions.cdi.scripting.api.LanguageManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.