Package groovy.lang

Examples of groovy.lang.DeprecationException


     * @param parentClassLoader ClassLoader to be used as the parent ClassLoader
     *                          for scripts executed by the engine
     * @deprecated
     */
    public void setParentClassLoader(ClassLoader parentClassLoader) {
        throw new DeprecationException(
                "The method GroovyScriptEngine#setParentClassLoader(ClassLoader) " +
                        "is no longer supported. Specify a parentLoader in the constructor instead."
        );
    }
View Full Code Here


     * @throws ScriptException   if there is a problem parsing the script
     * @deprecated
     */
    public Class loadScriptByName(String scriptName, ClassLoader parentClassLoader)
            throws ResourceException, ScriptException {
        throw new DeprecationException(
                "The method GroovyScriptEngine#loadScriptByName(String,ClassLoader) " +
                        "is no longer supported. Use GroovyScriptEngine#loadScriptByName(String) instead."
        );
    }
View Full Code Here

     * @param parentClassLoader ClassLoader to be used as the parent ClassLoader
     *                          for scripts executed by the engine
     * @deprecated
     */
    public void setParentClassLoader(ClassLoader parentClassLoader) {
        throw new DeprecationException(
                "The method GroovyScriptEngine#setParentClassLoader(ClassLoader) " +
                        "is no longer supported. Specify a parentLoader in the constructor instead."
        );
    }
View Full Code Here

     * @throws ScriptException   if there is a problem parsing the script
     * @deprecated
     */
    public Class loadScriptByName(String scriptName, ClassLoader parentClassLoader)
            throws ResourceException, ScriptException {
        throw new DeprecationException(
                "The method GroovyScriptEngine#loadScriptByName(String,ClassLoader) " +
                        "is no longer supported. Use GroovyScriptEngine#loadScriptByName(String) instead."
        );
    }
View Full Code Here

TOP

Related Classes of groovy.lang.DeprecationException

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.