Package org.rhq.scripting

Examples of org.rhq.scripting.ScriptEngineProvider


        return null;
    }

    public static String getFileExtensionForLanguage(String language) {
        ScriptEngineProvider provider = KNOWN_PROVIDERS.get(language);
        if (provider == null) {
            return null;
        }

        return provider.getScriptFileExtension();
    }
View Full Code Here


        }

        if (scriptSourceProviders != null) {
            //first figure out which initializer to use with this script engine
            String language = (String) engine.getFactory().getParameter(ScriptEngine.NAME);
            ScriptEngineProvider engineProvider = KNOWN_PROVIDERS.get(language);
            if (engineProvider == null) {
                throw new IllegalArgumentException("The supplied script engine [" + engine + "] is not supported.");
            }

            ScriptEngineInitializer initializer = engineProvider.getInitializer();

            ScriptSourceProvider provider = null;

            for (ScriptSourceProvider p : scriptSourceProviders) {
                if (p instanceof StandardBindings.RhqFacadeChangeListener) {
View Full Code Here

                + ". No indirection methods for variable '" + bindingName + "' will be generated.", e);
        }
    }

    public static ScriptEngineInitializer getInitializer(String language) {
        ScriptEngineProvider provider = KNOWN_PROVIDERS.get(language);
       
        return provider == null ? null : provider.getInitializer();
    }
View Full Code Here

       
        return provider == null ? null : provider.getInitializer();
    }

    public static CodeCompletion getCodeCompletion(String language) {
        ScriptEngineProvider provider = KNOWN_PROVIDERS.get(language);
       
        return provider == null ? null : provider.getCodeCompletion();
    }
View Full Code Here

TOP

Related Classes of org.rhq.scripting.ScriptEngineProvider

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.